Source code for audioinstruments.poly80

# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.instruments.poly80.Poly80: edit that, then run it again.
"""Poly80, an eight-voice polysynth inspired by the Yamaha CS-80."""

NAME = "poly80"
DISPLAY_NAME = "Poly80"
CATEGORIES = ("Synth",)
VERSION = "0.5.3.dev1"
VENDOR = "PyDevices"

MACRO_LABELS = (
    "brilliance",
    "resonance",
    "mix",
    "sub_speed",
    "sub_vco",
    "sub_vcf",
    "ring_mod",
    "ring_speed",
    "sustain",
    "portamento",
)

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

PATCHES = {
    0: ("Init", (63, 63, 63, 63, 0, 0, 0, 63, 0, 0)),
    1: ("Swell Brass", (63, 63, 63, 63, 0, 0, 0, 63, 0, 0)),
    2: ("Ribbon Lead", (63, 63, 25, 69, 0, 0, 0, 63, 0, 31)),
    3: ("Layered Strings", (63, 63, 63, 63, 0, 0, 0, 63, 88, 0)),
    4: ("Ring Bells", (63, 63, 63, 63, 0, 0, 76, 95, 88, 0)),
    5: ("Electric Piano", (63, 63, 12, 63, 0, 0, 0, 63, 0, 0)),
    6: ("Clav Pluck", (63, 63, 0, 63, 0, 0, 0, 63, 0, 0)),
    7: ("Pipe Organ", (63, 63, 63, 63, 0, 0, 0, 63, 0, 0)),
    8: ("Breathy Flute", (63, 63, 0, 63, 0, 0, 0, 63, 0, 0)),
    9: ("Touch Wah", (63, 63, 63, 63, 0, 0, 0, 63, 0, 0)),
    10: ("Gliss Pad", (63, 63, 63, 63, 0, 0, 0, 63, 0, 50)),
    11: ("Round Bass", (63, 63, 0, 63, 0, 0, 0, 63, 0, 0)),
}


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