Lab

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";
Fileslib/drum-kit.ts
Depends onarrangement, drum-synth-device, reverb-device
npmNothing
Used byarrangement-view, block-timeline, demo-song, device-view
ExportKindWhat it is
DRUM_KIT_PADSconstThe kit's pads: the note each answers, on the notes General MIDI writes drums on, its name and its voice.
DRUM_NOTESconstThe kit's notes, by the pad's voice: what a part is written with.
drumKitfunctionThe 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
Built by Ouest Labs, the source code is available on GitHub.
RSS