Source code for audioinstruments.poly106

# SPDX-FileCopyrightText: 2026 Brad Barnett
#
# SPDX-License-Identifier: MIT
# Generated by tools/make_faces.py from audioinstruments._rack.instruments.poly106.Poly106: edit that, then run it again.
"""Poly106, a six-voice poly synth inspired by the Roland Juno-106."""

NAME = "poly106"
DISPLAY_NAME = "Poly106"
CATEGORIES = ("Synth",)
VERSION = "0.5.3.dev1"
VENDOR = "PyDevices"

MACRO_LABELS = (
    "vcf_freq",
    "vcf_res",
    "vcf_env",
    "env_attack",
    "env_decay",
    "env_sustain",
    "env_release",
    "lfo_rate",
    "dco_pwm",
    "chorus",
)

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

PATCHES = {
    0: ("Poly Saw", (70, 19, 44, 0, 57, 76, 38, 70, 0, 42)),
    1: ("Warm Pad", (53, 0, 32, 76, 89, 89, 83, 38, 76, 85)),
    2: ("Strings", (79, 0, 13, 64, 76, 108, 76, 74, 0, 42)),
    3: ("Brass", (38, 13, 57, 58, 70, 83, 44, 70, 0, 42)),
    4: ("Brass Stab", (44, 25, 83, 13, 53, 38, 38, 70, 25, 0)),
    5: ("Sub Bass", (33, 25, 38, 0, 51, 51, 19, 70, 38, 0)),
    6: ("Pluck Bass", (44, 64, 89, 0, 64, 0, 36, 70, 0, 0)),
    7: ("Lead", (61, 44, 44, 6, 64, 89, 38, 79, 38, 42)),
    8: ("Square Lead", (83, 13, 19, 4, 51, 102, 32, 57, 51, 85)),
    9: ("Organ", (86, 0, 0, 0, 51, 76, 38, 70, 0, 127)),
    10: ("Sweep Pad", (48, 76, 25, 83, 95, 89, 89, 25, 64, 85)),
    11: ("Poly Keys", (51, 13, 51, 0, 76, 0, 64, 70, 32, 85)),
}


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