Source code for audioinstruments.duosynth

# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.instruments.duosynth.DuoSynth: edit that, then run it again.
"""DuoSynth, a duophonic two-oscillator synthesizer inspired by the ARP Odyssey."""

NAME = "duosynth"
DISPLAY_NAME = "DuoSynth"
CATEGORIES = ("Synth",)
VERSION = "0.5.2"
VENDOR = "PyDevices"

MACRO_LABELS = (
    "vcf_cutoff",
    "vcf_resonance",
    "vcf_env",
    "adsr_attack",
    "adsr_decay",
    "adsr_sustain",
    "adsr_release",
    "vco2_fine",
    "lfo_rate",
    "portamento",
)

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

PATCHES = {
    0: ("Init", (76, 0, 50, 0, 50, 88, 38, 64, 50, 0)),
    1: ("Duo Lead", (76, 25, 38, 0, 50, 88, 38, 64, 50, 50)),
    2: ("Sync Lead", (95, 38, 50, 0, 63, 88, 38, 64, 50, 25)),
    3: ("Duophonic Thirds", (76, 0, 38, 0, 50, 88, 31, 64, 50, 0)),
    4: ("Ring Bell", (88, 0, 50, 0, 88, 0, 88, 64, 50, 0)),
    5: ("PWM Strings", (63, 0, 25, 97, 50, 88, 88, 64, 25, 0)),
    6: ("Pluck Bass", (57, 44, 88, 0, 73, 0, 31, 64, 50, 0)),
    7: ("S&H Steps", (76, 63, 50, 0, 50, 88, 38, 64, 76, 0)),
    8: ("Square Trill", (76, 0, 50, 0, 50, 88, 38, 64, 93, 0)),
    9: ("Repeat Pulse", (76, 0, 50, 0, 44, 0, 38, 64, 63, 0)),
    10: ("Noise Wind", (95, 76, 50, 0, 50, 88, 38, 64, 19, 0)),
    11: ("FM Clang", (88, 0, 50, 0, 76, 0, 63, 64, 50, 0)),
}


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