# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.instruments.clavichord.Clavichord: edit that, then run it again.
"""Clavichord, a ten-voice struck-string electric clavichord with two pickups, four tone tabs and a mute, inspired by the Hohner Clavinet D6."""
NAME = "clavichord"
DISPLAY_NAME = "Clavichord"
CATEGORIES = ("Synth",)
VERSION = "0.5.2"
VENDOR = "PyDevices"
MACRO_LABELS = (
"pickup",
"mute",
"wah",
"brilliant",
"treble",
"medium",
"soft",
"tremolo_depth",
)
MACRO_MODES = {
0: "UNIPOLAR",
1: "UNIPOLAR",
2: "UNIPOLAR",
3: "TOGGLE",
4: "TOGGLE",
5: "TOGGLE",
6: "TOGGLE",
7: "UNIPOLAR",
}
PATCHES = {
0: ("Funk", (85, 0, 0, 0, 0, 127, 0, 0)),
1: ("Brilliant Upper", (0, 0, 0, 127, 127, 0, 0, 0)),
2: ("Warm Lower", (42, 0, 0, 0, 0, 0, 127, 0)),
3: ("Out of Phase", (127, 0, 0, 0, 127, 0, 0, 0)),
4: ("Muted", (85, 76, 0, 0, 0, 127, 0, 0)),
5: ("Auto-Wah", (0, 0, 89, 0, 127, 0, 0, 0)),
6: ("Full", (85, 0, 0, 0, 0, 0, 0, 0)),
7: ("Tremolo", (42, 0, 0, 0, 0, 127, 0, 64)),
}
[docs]
def create(sample_rate, channel_count=2, transport=None, **options):
"""A live Clavichord. See ``audioinstruments.create`` for the options."""
from . import _build
return _build(NAME, sample_rate, channel_count, transport, options)