Source code for audioinstruments.electric_grand70

# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.instruments.electric_grand70.ElectricGrand70: edit that, then run it again.
"""ElectricGrand70, a ten-voice electric grand piano inspired by the Yamaha CP-70."""

NAME = "electric_grand70"
DISPLAY_NAME = "ElectricGrand70"
CATEGORIES = ("Synth",)
VERSION = "0.5.3.dev1"
VENDOR = "PyDevices"

MACRO_LABELS = (
    "brightness",
    "detune",
    "decay",
    "bass",
    "middle",
    "treble",
    "tremolo_depth",
    "tremolo_rate",
)

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

PATCHES = {
    0: ("Stage Grand", (64, 51, 64, 64, 64, 64, 0, 64)),
    1: ("Ballad", (38, 38, 64, 64, 64, 51, 0, 64)),
    2: ("Bright Rock", (102, 51, 64, 64, 76, 89, 0, 64)),
    3: ("Chorused", (64, 102, 64, 64, 64, 64, 25, 64)),
    4: ("Tremolo", (64, 51, 64, 64, 64, 64, 76, 64)),
    5: ("Dark Felt", (13, 51, 64, 76, 64, 25, 0, 64)),
}


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