Source code for audioinstruments.tonewheel3

# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.instruments.tonewheel3.Tonewheel3: edit that, then run it again.
"""Tonewheel3, a sixteen-voice tonewheel organ with nine drawbars, single-trigger percussion, key click, a scanner vibrato and chorus, an overdriven rotary speaker, inspired by the Hammond B-3."""

NAME = "tonewheel3"
DISPLAY_NAME = "Tonewheel3"
CATEGORIES = ("Synth",)
VERSION = "0.5.3.dev1"
VENDOR = "PyDevices"

MACRO_LABELS = (
    "db16",
    "db8",
    "db4",
    "db2",
    "perc_harmonic",
    "vibrato_mode",
    "rotary",
    "drive",
    "expression",
)

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

PATCHES = {
    0: ("Full Gospel", (127, 127, 127, 0, 127, 127, 127, 25, 127)),
    1: ("Jazz Trio", (127, 127, 0, 0, 127, 127, 64, 13, 127)),
    2: ("Rock Drive", (127, 127, 127, 0, 127, 127, 127, 89, 127)),
    3: ("Ballad", (127, 127, 0, 0, 127, 102, 64, 0, 127)),
    4: ("Bright Percussive", (127, 127, 0, 0, 127, 127, 64, 25, 127)),
    5: ("Flutes", (0, 127, 0, 0, 127, 25, 64, 0, 127)),
    6: ("Full Organ", (127, 127, 127, 127, 127, 127, 127, 51, 127)),
    7: ("Whistle", (127, 0, 0, 0, 127, 51, 64, 0, 127)),
}


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