drum-kit
A drum kit to start a drum rack from: a pad per drum on the General MIDI notes, each a Drum Synth at the head of its chain, the snare and the clap in a small room, the hats in one choke group.
pnpm dlx shadcn@latest add @audio-ui/drum-kit
import { DRUM_KIT_PADS, DRUM_NOTES, drumKit } from "@/lib/drum-kit";| Files | lib/drum-kit.ts |
|---|---|
| Depends on | arrangement, drum-synth-device, reverb-device |
| npm | Nothing |
| Used by | arrangement-view, block-timeline, demo-song, device-view |
| Export | Kind | What it is |
|---|---|---|
DRUM_KIT_PADS | const | The kit's pads: the note each answers, on the notes General MIDI writes drums on, its name and its voice. |
DRUM_NOTES | const | The kit's notes, by the pad's voice: what a part is written with. |
drumKit | function | The kit as a drum rack: a pad per entry of DRUM_KIT_PADS, each a chain with its Drum Synth at its head and, for the snare and the clap, the room after it. |
Usage
A drum kit to start a drum rack from: a pad per drum on the General MIDI notes (DRUM_NOTES), each a Drum Synth at the head of its chain, the snare and the clap in a small room, the hats in one choke group.
import { drumKit } from "@/lib/drum-kit";
const rack = drumKit(); // pass it as `rack` with the add-device command