# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.modules.duo20.Duo20: edit that, then run it again.
"""Duo20, a voice inspired by the Korg MS-20: two VCOs, a high-pass into a low-pass Sallen-Key pair with diode-clipped peak, two envelopes, a modulation generator, noise, sample and hold, and a patch panel."""
NAME = "duo20"
DISPLAY_NAME = "Duo20"
CATEGORIES = ("Synth",)
VERSION = "0.5.2"
VENDOR = "PyDevices"
MACRO_LABELS = (
"lpf_cutoff",
"lpf_peak",
"hpf_cutoff",
"hpf_peak",
"vco2_pitch",
"lpf_eg2_depth",
"eg2_attack",
"eg2_decay",
"eg2_sustain",
"eg2_release",
"volume",
)
MACRO_MODES = {
0: "UNIPOLAR",
1: "UNIPOLAR",
2: "UNIPOLAR",
3: "UNIPOLAR",
4: "BIPOLAR",
5: "UNIPOLAR",
6: "UNIPOLAR",
7: "UNIPOLAR",
8: "UNIPOLAR",
9: "UNIPOLAR",
10: "UNIPOLAR",
}
PATCHES = {
0: ("Init", (64, 70, 13, 25, 64, 95, 0, 7, 114, 6, 85)),
1: ("Screaming Lead", (55, 107, 25, 50, 64, 57, 0, 8, 111, 4, 85)),
2: ("Resonant Bass", (25, 58, 2, 0, 64, 78, 0, 5, 107, 2, 89)),
3: ("Wobble Bass", (35, 57, 0, 0, 64, 0, 0, 6, 107, 2, 93)),
4: ("Random Bleeps", (76, 57, 12, 0, 64, 0, 0, 6, 114, 2, 91)),
5: ("Ring Bell", (88, 12, 35, 0, 76, 25, 0, 35, 0, 35, 88)),
6: ("Brass", (35, 25, 7, 0, 64, 76, 2, 6, 116, 3, 86)),
7: ("Electro Pluck", (25, 57, 12, 0, 63, 88, 0, 11, 0, 7, 86)),
8: ("Resonant Tom", (48, 55, 0, 0, 64, 0, 0, 9, 0, 7, 110)),
9: ("Slow Pad", (38, 19, 0, 0, 64, 44, 40, 37, 101, 45, 88)),
10: ("Squeal", (88, 50, 57, 107, 64, 0, 0, 6, 114, 7, 86)),
11: ("Wind", (76, 57, 12, 101, 64, 0, 30, 6, 114, 40, 97)),
}
[docs]
def create(sample_rate, channel_count=2, transport=None, **options):
"""A live Duo20. See ``audioinstruments.create`` for the options."""
from . import _build
return _build(NAME, sample_rate, channel_count, transport, options)