Source code for audioinstruments.electric_piano

# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.instruments.electric_piano.ElectricPiano: edit that, then run it again.
"""ElectricPiano, a ten-voice tine electric piano inspired by the Fender Rhodes Suitcase 73."""

NAME = "electric_piano"
DISPLAY_NAME = "Electric Piano"
CATEGORIES = ("Piano",)
VERSION = "0.5.2"
VENDOR = "PyDevices"

MACRO_LABELS = (
    "voicing",
    "hammer",
    "bell",
    "decay",
    "damper",
    "vibrato_rate",
    "vibrato_depth",
    "treble",
)

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

PATCHES = {
    0: ("Suitcase", (64, 64, 64, 64, 64, 51, 51, 64)),
    1: ("Stage Mellow", (25, 38, 38, 64, 64, 51, 0, 51)),
    2: ("Bark", (114, 102, 64, 64, 64, 51, 0, 64)),
    3: ("Glass Tines", (38, 89, 114, 64, 64, 51, 25, 89)),
    4: ("Dark Tonebar", (51, 64, 13, 64, 64, 51, 0, 25)),
    5: ("Fast Pan", (64, 64, 64, 64, 64, 102, 102, 64)),
    6: ("Short Damper", (76, 64, 64, 38, 114, 51, 0, 64)),
    7: ("Slow Pan Ballad", (38, 64, 51, 64, 64, 25, 76, 64)),
}


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