Extensions/ComfyUI_DrumPad
ComfyUI Extension

ComfyUI_DrumPad

Advanced drum machine for ComfyUI featuring a 64-step sequencer, custom sample support, and retro hardware aesthetics.

By SKBv0·Created 7 months ago·Updated 2 months ago· 20
SKBv0/ComfyUI_DrumPad
Nodes1
On cloudLocal install
Categoryaudio
Stars20
Updated2 months ago

Nodes (1)

Readme

ComfyUI DrumPad

A drum pad node for ComfyUI with configurable 16/64 pad layouts."

https://github.com/user-attachments/assets/faed8461-bc53-4ed5-9e48-7020ee22a002

Features

  • Configurable Grid: Switch between 4x4 (16 pads) and 8x8 (64 pads) layouts.
  • Sequencer: Built-in sequencer supporting up to 64 steps.
  • Parametric Controls: Pitch, Swing, and individual/master Volume adjustments.
  • Custom Sounds: Support for loading custom audio files (.wav, .mp3, .ogg, .flac).
  • Persistence: Kit configurations and assignments are saved automatically.
  • Audio Output: Outputs audio tensors compatible with standard ComfyUI audio nodes.

Sound Assets

Default sounds are sourced from the 90s MPC Sample Pack.


Adding Custom Sounds

1. Via UI (Sound Picker)

  1. Select a pad.
  2. Click LOAD SOUND in the right panel.
  3. Choose either:
    • UPLOAD FILE: Select a local audio file.
    • Sound Library: Browse available sounds in the sounds/ directory.

Uploaded files are stored in ComfyUI_DrumPad/user_sounds/.

2. Manual Installation

Place audio files directly into the library structure:

ComfyUI_DrumPad/
└── sounds/
    ├── Kick/
    ├── Snare/
    ├── Hats/
    ├── Perc/
    ├── Bass/
    └── Accents & FX/

Supported formats: .wav, .mp3, .ogg, .flac, .m4a, .aac

After adding files, restart ComfyUI or reload the kit to see new sounds.

Method 3: Add New Kit (Advanced)

  1. Create a new folder under sounds/ with your kit name (e.g., sounds/My Kit/)
  2. Add pad sound files named Kick 1.wav, Snare 1.wav, etc.
  3. Add kit definition in config_manager.pyDEFAULT_KITS dictionary

Controls

| Control | Function | |---------|----------| | Pads | Trigger sound / Select pad for editing | | PADS (4x4 / 8x8) | Toggle between 16-pad and 64-pad grid layouts | | Sequencer Steps | Toggle notes on/off | | BPM | Adjust playback tempo (drag to change) | | PITCH | Adjust playback speed/pitch | | SWING | Apply swing timing to the sequencer | | Volume Faders | Adjust selected pad and master volume | | PLAY / REC | Transport controls for the sequencer | | KIT | Cycle through available kits |

Keyboard Shortcuts

Note: Mouse must be over the node.

  • Q W E R : Pads 1-4
  • A S D F : Pads 5-8
  • Z X C V : Pads 9-12
  • 1 2 3 4 : Pads 13-16

Outputs

  • audio: Audio tensor output.
  • file_path: Path to the primary sound file (if applicable).

Connect to Save Audio or Preview Audio nodes to listen to the result.


https://github.com/user-attachments/assets/3d92a116-b8dd-41c8-8a99-50873fa7c1ec

Installation

  1. Copy the ComfyUI_DrumPad folder to your ComfyUI custom_nodes directory.
  2. Restart ComfyUI.
  3. The node is available under the audio category.

License

MIT License.