Source code for audioinstruments.electronic_drums5

# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.instruments.electronic_drums5.ElectronicDrums5: edit that, then run it again.
"""ElectronicDrums5, an electronic drum kit with swept tones and noise hats, inspired by the Simmons SDS-V."""

NAME = "electronic_drums5"
DISPLAY_NAME = "ElectronicDrums5"
CATEGORIES = ("Drum",)
VERSION = "0.5.3.dev1"
VENDOR = "PyDevices"

MACRO_LABELS = (
    "t1_bend",
    "t1_decay",
    "sd_noise",
    "sd_filter",
    "bd_click",
    "bd_decay",
    "sensitivity",
    "volume",
)

MACRO_MODES = {
    0: "UNIPOLAR",
    1: "UNIPOLAR",
    2: "UNIPOLAR",
    3: "UNIPOLAR",
    4: "UNIPOLAR",
    5: "UNIPOLAR",
    6: "UNIPOLAR",
    7: "UNIPOLAR",
}

PATCHES = {
    0: ("Classic", (64, 64, 95, 89, 89, 64, 64, 89)),
    1: ("Deep Toms", (95, 95, 95, 89, 89, 83, 64, 89)),
    2: ("Electro", (64, 38, 114, 108, 114, 38, 64, 89)),
    3: ("Syndrum", (121, 83, 95, 89, 89, 64, 64, 89)),
    4: ("Gated", (64, 28, 108, 114, 89, 38, 64, 89)),
}

NOTE_MAP = (
    (35, "Bass Drum"),
    (36, "Bass Drum 2"),
    (37, "Snare Drum"),
    (38, "Snare Drum 2"),
    (39, "Snare Drum 3"),
    (40, "Snare Drum 4"),
    (41, "Tom 3"),
    (42, "Closed Hi-Hat"),
    (43, "Tom 3 2"),
    (45, "Tom 2"),
    (46, "Open Hi-Hat"),
    (47, "Tom 2 2"),
    (48, "Tom 1"),
    (49, "Cymbal"),
    (50, "Tom 1 2"),
)


[docs] def create(sample_rate, channel_count=2, transport=None, **options): """A live ElectronicDrums5. See ``audioinstruments.create`` for the options.""" from . import _build return _build(NAME, sample_rate, channel_count, transport, options)