diff --git a/python_payload/apps/demo_harmonic/__init__.py b/python_payload/apps/demo_harmonic/__init__.py index bc9fd69b2b297f33286ec8e5920f74d0db364b8c..3ab5e1b775e0f368e2e9c7c661eee850f259aeca 100644 --- a/python_payload/apps/demo_harmonic/__init__.py +++ b/python_payload/apps/demo_harmonic/__init__.py @@ -26,19 +26,17 @@ class HarmonicApp(Application): self.color_intensity = 0.0 self.chord_index = 0 self.chord: List[int] = [] - self.synths = [blm.new(bl00mbox.patches.tinysynth_fm) for i in range(5)] + self.synths = [blm.new(bl00mbox.patches.tinysynth) for i in range(5)] self.cp_prev = captouch.read() for i, synth in enumerate(self.synths): synth.signals.decay = 500 - synth.signals.waveform = -32767 + synth.signals.waveform = 0 synth.signals.attack = 50 synth.signals.volume = 0.3 * 32767 synth.signals.sustain = 0.9 * 32767 synth.signals.release = 800 - synth.signals.fm_waveform = -32767 synth.signals.output = blm.mixer - # synth.fm = 1.5 self._set_chord(3) self.prev_captouch = [0] * 10 diff --git a/python_payload/apps/demo_melodic/__init__.py b/python_payload/apps/demo_melodic/__init__.py index cf6d405e439351bcb99e6954acac5a341d407b98..b6813904aadebd952c569019037cd0822bb20aef 100644 --- a/python_payload/apps/demo_melodic/__init__.py +++ b/python_payload/apps/demo_melodic/__init__.py @@ -10,7 +10,7 @@ from st3m.ui.view import ViewManager from ctx import Context octave = 0 -synths: List[bl00mbox.patches.tinysynth_fm] = [] +synths: List[bl00mbox.patches.tinysynth] = [] scale = [0, 2, 4, 5, 7, 9, 11] @@ -79,7 +79,7 @@ def run(input: InputController) -> None: def init() -> None: global synths for i in range(1): - synth = blm.new(bl00mbox.patches.tinysynth_fm) + synth = blm.new(bl00mbox.patches.tinysynth) synth.signals.output = blm.mixer synths += [synth] for synth in synths: