# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.instruments.rhythm78.Rhythm78: edit that, then run it again.
"""Rhythm78, an analog preset rhythm machine with fifteen sounds, inspired by the Roland CR-78."""
NAME = "rhythm78"
DISPLAY_NAME = "Rhythm78"
CATEGORIES = ("Drum",)
VERSION = "0.5.2"
VENDOR = "PyDevices"
MACRO_LABELS = (
"balance",
"accent",
"tone",
"bd_level",
"hh_level",
"volume",
)
MACRO_MODES = {
0: "UNIPOLAR",
1: "UNIPOLAR",
2: "UNIPOLAR",
3: "UNIPOLAR",
4: "UNIPOLAR",
5: "UNIPOLAR",
}
PATCHES = {
0: ("CompuRhythm", (64, 64, 64, 89, 89, 89)),
1: ("Bossa", (64, 64, 64, 51, 89, 89)),
2: ("Disco", (76, 89, 64, 114, 102, 89)),
3: ("Dark", (64, 64, 25, 89, 89, 89)),
}
NOTE_MAP = (
(35, "Bass Drum"),
(36, "Bass Drum 2"),
(37, "Rim Shot"),
(38, "Snare Drum"),
(40, "Snare Drum 2"),
(42, "Hi-Hat"),
(44, "Hi-Hat 2"),
(46, "Hi-Hat 3"),
(49, "Cymbal"),
(51, "Cymbal 2"),
(54, "Tambourine"),
(55, "Metal Beat"),
(56, "Cowbell"),
(57, "Cymbal 3"),
(60, "High Bongo"),
(61, "Low Bongo"),
(62, "Low Conga"),
(63, "Low Conga 2"),
(64, "Low Conga 3"),
(70, "Maracas"),
(73, "Guiro Short"),
(74, "Guiro Long"),
(75, "Claves"),
)
[docs]
def create(sample_rate, channel_count=2, transport=None, **options):
"""A live Rhythm78. See ``audioinstruments.create`` for the options."""
from . import _build
return _build(NAME, sample_rate, channel_count, transport, options)