def add_synth(self, stype, keymode="Poly1", voice_count=8): ''' Adds new synth ARGS: stype - String, the synth type, MUST be one of the values found in constants.SYNTH_TYPES keymode - String, the keymode, MUST be a value found in constants.KEY_MODES. NOTE: Most synths do not support all possible key modes. voice_count - int, number of allocated voices. voice_count is only used if keymode has a finite voice allocation, otherwise it is ignored. RETURNS: SynthProxy if the synth was added, None if the synth could not be added. ''' sy = SynthSpecs.create_synth_proxy(self.app, stype) if not sy: msg = "%s synth could not be created" % stype self.warning(msg) return None else: sid = sy.sid self._synths[sid] = sy self._send("add-synth", [stype, sy.id_, keymode, voice_count]) return sy
def add_efx(self, stype): ''' Add effect synth. ARGS: stype - String, the synth type, MUST match a value found in constants.EFFECT_TYPES RETURNS: SynthProxy if synth was added. None is synth could not be added. ''' sy = SynthSpecs.create_synth_proxy(self.app, stype) if not sy: msg ="EFX Synth %s could not be created" % stype self.warning(msg) return None else: sy.is_efx = True self._synths[sy.sid] = sy self._send("add-efx", [stype, sy.id_]) return sy
def add_efx(self, stype): ''' Add effect synth. ARGS: stype - String, the synth type, MUST match a value found in constants.EFFECT_TYPES RETURNS: SynthProxy if synth was added. None is synth could not be added. ''' sy = SynthSpecs.create_synth_proxy(self.app, stype) if not sy: msg = "EFX Synth %s could not be created" % stype self.warning(msg) return None else: sy.is_efx = True self._synths[sy.sid] = sy self._send("add-efx", [stype, sy.id_]) return sy
# llia.synths.comb.comb_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.comb.comb_data import program_bank from llia.synths.comb.comb_pp import comb_pp from llia.synths.comb.comb_random import comb_random specs = SynthSpecs("Comb") class CombProxy(SynthProxy): def __init__(self, app): super(CombProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.comb.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor pallet = Pallet(default_pallet) #pallet["BACKGROUND"] = #pallet["SLIDER-OUTLINE"] =
# llia.synths.fm2.fm2_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.fm2.fm2_data import program_bank from llia.synths.fm2.fm2_pp import pp_fm2 from llia.synths.fm2.fm2_random import fm2_random from llia.synths.fm2.fm2_constants import * specs = SynthSpecs("FM2") class FM2Proxy(SynthProxy): def __init__(self, app): super(FM2Proxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.fm2.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor fm2_pallet = Pallet(default_pallet)
# llia.synths.bandpass.bandpass_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.bandpass.bandpass_data import program_bank, pp specs = SynthSpecs("Bandpass") class BandpassProxy(SynthProxy): def __init__(self, app): super(BandpassProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.bandpass.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor bandpass_pallet = Pallet(default_pallet) specs["constructor"] = BandpassProxy specs["is-efx"] = True
# llia.synths.ss1.ss1_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.ss1.ss1_data import program_bank, pp, random_ss1 #from llia.synths.ss1.ss1_random import ss1_random specs = SynthSpecs("SS1") class SS1Proxy(SynthProxy): def __init__(self, app): super(SS1Proxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.ss1.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor ss1_pallet = Pallet(default_pallet) ss1_pallet["SLIDER-TROUGH"] = "#1d3136" ss1_pallet["SLIDER-OUTLINE"] = "#2e1d36"
# llia.synths.lfo1.lfo1_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.lfo1.lfo1_data import program_bank, pp, random_lfo1 specs = SynthSpecs("LFO1") class Lfo1Proxy(SynthProxy): def __init__(self, app): super(Lfo1Proxy, self).__init__(app, specs,program_bank) self.app = app def create_subeditors(self): pass gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.lfo1.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) lfo1_pallet = Pallet(default_pallet) lfo1_pallet["SLIDER-TROUGH"] = "#301319" lfo1_pallet["SLIDER-OUTLINE"] = "#13302d"
# llia.synths.saw3.s3_proxy # 2016.06.05 from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.saw3.s3_data import program_bank from llia.synths.saw3.s3_pp import pp_saw3 from llia.synths.saw3.s3_gen import s3gen specs = SynthSpecs("Saw3") class Saw3Proxy(SynthProxy): def __init__(self, app): super(Saw3Proxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.saw3.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) s3_pallet = Pallet(default_pallet) s3_pallet["BG"] = "#131313" s3_pallet["FG"] = "#DAC0C0"
# llia.synths.lfo2.lfo2_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.lfo2.lfo2_data import program_bank, pp from llia.synths.lfo2.lfo2_random import random_lfo2 specs = SynthSpecs("LFO2") class Lfo2Proxy(SynthProxy): def __init__(self, app): super(Lfo2Proxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): pass gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.lfo2.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) lfo2_pallet = Pallet(default_pallet) lfo2_pallet["SLIDER-TROUGH"] = "#432703" lfo2_pallet["SLIDER-OUTLINE"] = "#42033E"
# llia.synths.mixer.mixer_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.mixer.mixer_data import program_bank, pp specs = SynthSpecs("Mixer") class MixerProxy(SynthProxy): def __init__(self, app): super(MixerProxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): pass gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.mixer.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) mixer_pallet = Pallet(default_pallet) mixer_pallet["SLIDER-TROUGH"] = "#432703" mixer_pallet["SLIDER-OUTLINE"] = "#42033E"
# llia.synths.panner.panner_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.panner.panner_data import program_bank, pp, random_panner specs = SynthSpecs("Panner") class PannerProxy(SynthProxy): def __init__(self, app): super(PannerProxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.panner.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) panner_pallet = Pallet(default_pallet) panner_pallet["SLIDER-TROUGH"] = "#432703" panner_pallet["SLIDER-OUTLINE"] = "#42033E" specs["constructor"] = PannerProxy
# llia.synths.lfo3.lfo3_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.lfo3.lfo3_data import program_bank, pp specs = SynthSpecs("LFO3") class Lfo3Proxy(SynthProxy): def __init__(self, app): super(Lfo3Proxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): pass gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.lfo3.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) lfo3_pallet = Pallet(default_pallet) lfo3_pallet["SLIDER-TROUGH"] = "#432703" lfo3_pallet["SLIDER-OUTLINE"] = "#42033E"
# llia.synths.rumklang.rumklang_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.rumklang.rumklang_data import program_bank, pp specs = SynthSpecs("Rumklang") class RumklangProxy(SynthProxy): def __init__(self, app): super(RumklangProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.rumklang.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor rumklang_pallet = Pallet(default_pallet) specs["constructor"] = RumklangProxy specs["is-efx"] = True
# llia.synths.ringmodulator.rm_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.ringmodulator.rm_data import program_bank, pp specs = SynthSpecs("RingModulator") class RingModulatorProxy(SynthProxy): def __init__(self, app): super(RingModulatorProxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.ringmodulator.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) ringmodulator_pallet = Pallet(default_pallet) ringmodulator_pallet["SLIDER-TROUGH"] = "black" ringmodulator_pallet["SLIDER-OUTLINE"] = "blue" specs["constructor"] = RingModulatorProxy
# llia.synths.tremolo.tremolo_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.tremolo.trm_data import program_bank, pp, random_tremolo specs = SynthSpecs("Tremolo") class TremoloProxy(SynthProxy): def __init__(self, app): super(TremoloProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.tremolo.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) tremolo_pallet = Pallet(default_pallet) tremolo_pallet["SLIDER-OUTLINE"] = "#a5a08a" specs["is-efx"] = True specs["constructor"] = TremoloProxy
# llia.synths.cascade.cascade_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.cascade.cascade_data import program_bank, pp, random_cascade specs = SynthSpecs("Cascade") class CascadeProxy(SynthProxy): def __init__(self, app): super(CascadeProxy, self).__init__(app,specs,program_bank) self.app = app def create_subeditors(self): pass gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.cascade.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) cascade_pallet = Pallet(default_pallet) cascade_pallet["SLIDER-TROUGH"] = "#49495c" cascade_pallet["SLIDER-OUTLINE"] = "#5c4952"
# llia.synths.crusher.crusher_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.crusher.crusher_data import program_bank, pp specs = SynthSpecs("Crusher") class CrusherProxy(SynthProxy): def __init__(self, app): super(CrusherProxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.crusher.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) crusher_pallet = Pallet(default_pallet) crusher_pallet["SLIDER-TROUGH"] = "black" crusher_pallet["SLIDER-OUTLINE"] = "blue" specs["constructor"] = CrusherProxy
# llia.synths.orgn.organ_proxy # 2016.06.04 from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.orgn.orgn_data import program_bank from llia.synths.orgn.orgn_pp import pp_orgn from llia.synths.orgn.orgn_gen import gen_orgn_program specs = SynthSpecs("Orgn") class OrgnProxy(SynthProxy): def __init__(self, app): super(OrgnProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.orgn.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor orgn_pallet = Pallet(default_pallet)
# llia.synths.prism.prism_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.prism.prism_data import program_bank, pp specs = SynthSpecs("Prism") class PrismProxy(SynthProxy): def __init__(self, app): super(PrismProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.prism.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor prism_pallet = Pallet(default_pallet) specs["constructor"] = PrismProxy specs["is-efx"] = True
# llia.synths.corvus.corvus_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.corvus.corvus_data import program_bank from llia.synths.corvus.corvus_pp import pp from llia.synths.corvus.rndgen.corvus_gen import corvusgen specs = SynthSpecs("Corvus") class CorvusProxy(SynthProxy): def __init__(self, app): super(CorvusProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.corvus.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor corvus_pallet = Pallet(default_pallet) corvus_pallet["SLIDER-OUTLINE"] = "#008279"
# llia.synths.snh.snh_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.snh.snh_data import program_bank, pp, random_snh specs = SynthSpecs("SnH") class SnHProxy(SynthProxy): def __init__(self, app): super(SnHProxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): pass gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.snh.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) snh_pallet = Pallet(default_pallet) snh_pallet["SLIDER-TROUGH"] = "#070064" snh_pallet["SLIDER-OUTLINE"] = "#63002b"
# llia.synths.pitchshifter.pitchshifter_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.pitchshifter.pitchshifter_data import program_bank, pp #from llia.synths.pitchshifter.pitchshifter_random import random_program specs = SynthSpecs("PitchShifter") class PitchShifterProxy(SynthProxy): def __init__(self, app): super(PitchShifterProxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.pitchshifter.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) pitchshifter_pallet = Pallet(default_pallet) pitchshifter_pallet["SLIDER-TROUGH"] = "#400137" pitchshifter_pallet["SLIDER-OUTLINE"] = "#10400A"
# llia.synths.m.m_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.m.m_data import program_bank from llia.synths.m.m_pp import pp from llia.synths.m.m_random import m_random specs = SynthSpecs("M") class MProxy(SynthProxy): def __init__(self, app): super(MProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.m.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor m_pallet = Pallet(default_pallet)
# llia.synths.formant.formant_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.formant.formant_data import program_bank, pp specs = SynthSpecs("Formant") class FormantProxy(SynthProxy): def __init__(self, app): super(FormantProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.formant.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor formant_pallet = Pallet(default_pallet) specs["constructor"] = FormantProxy specs["is-efx"] = True
# llia.synths.ghostbus.ghost_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.ghostbus.ghost_data import program_bank, pp specs = SynthSpecs("Ghostbus") class GhostbusProxy(SynthProxy): def __init__(self, app): super(GhostbusProxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): pass gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.ghostbus.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) ghostbus_pallet = Pallet(default_pallet) ghostbus_pallet["SLIDER-TROUGH"] = "#432703" ghostbus_pallet["SLIDER-OUTLINE"] = "#42033E"
# llia.synths.asplit.asplit_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.asplit.asplit_data import program_bank, pp specs = SynthSpecs("ASplit") class ASplitProxy(SynthProxy): def __init__(self, app): super(ASplitProxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.asplit.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) asplit_pallet = Pallet(default_pallet) asplit_pallet["SLIDER-TROUGH"] = "#432703" asplit_pallet["SLIDER-OUTLINE"] = "#42033E" specs["constructor"] = ASplitProxy
# llia.synths.carnal.crnl_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.carnal.crnl_data import program_bank, pp, random_program specs = SynthSpecs("CarnalDelay") class CarnalProxy(SynthProxy): def __init__(self, app): super(CarnalProxy, self).__init__(app, specs, program_bank) self.app = app def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.carnal.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) crnl_pallet = Pallet(default_pallet) crnl_pallet["SLIDER-TROUGH"] = "#400137" crnl_pallet["SLIDER-OUTLINE"] = "#10400A" specs["constructor"] = CarnalProxy
# llia.synths.cutil.cutil_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.cutil.cutil_data import program_bank, pp specs = SynthSpecs("CUtil") class CUtilProxy(SynthProxy): def __init__(self, app): super(CUtilProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.cutil.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) return parent_editor cutil_pallet = Pallet(default_pallet) specs["constructor"] = CUtilProxy specs["is-efx"] = False
# llia.synths.xover.xover_proxy # 2016.07.03 from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.xover.xover_data import program_bank, pp, random_xover specs = SynthSpecs("XOver"); class XOverProxy(SynthProxy): def __init__(self, app): super(XOverProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.xover.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) xover_pallet = Pallet(default_pallet) xover_pallet["BG"] = "#131313" xover_pallet["SLIDER-TROUGH"] = "#0a1414" xover_pallet["SLIDER-OUTLINE"] = "#3d1e29"
# llia.synths.klstr_proxy from __future__ import print_function import llia.constants from llia.gui.pallet import default_pallet, Pallet from llia.synth_proxy import SynthSpecs, SynthProxy from llia.synths.klstr.klstr_data import program_bank from llia.synths.klstr.klstr_pp import pp_klstr from llia.synths.klstr.klstr_gen import gen_klstr_program specs = SynthSpecs("Klstr") class KlstrProxy(SynthProxy): def __init__(self, app): super(KlstrProxy, self).__init__(app, specs, program_bank) self._editor = None def create_subeditors(self): gui = self.app.config["gui"].upper() if gui == "TK": from llia.synths.klstr.tk.editor import create_editor appwin = self.app.main_window() parent_editor = appwin[self.sid] create_editor(parent_editor) klstr_pallet = Pallet(default_pallet) klstr_pallet["SLIDER-TROUGH"] = "#4d424f" klstr_pallet["SLIDER-OUTLINE"] = "#464f42"