Skip to content

Commit

Permalink
stop round lookup to midi for synth.PatchSynth in voices
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitman committed Feb 4, 2025
1 parent d06ecec commit 4be2864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tulip/shared/py/voices.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import tulip
import midi
import synth
import lvgl as lv
import amy
from patches import patches
Expand Down Expand Up @@ -265,7 +266,7 @@ def update_map():
channel_patch, amy_voices = midi.config.channel_info(channel)
channel_polyphony = 0 if amy_voices is None else len(amy_voices)
if (channel_patch, channel_polyphony) != (patch_no, polyphony):
midi.config.add_synth(channel=channel, synth=midi.PatchSynth(patch_number=patch_no, num_voices=polyphony))
midi.config.add_synth(channel=channel, synth=synth.PatchSynth(patch_number=patch_no, num_voices=polyphony))


# populate the patches dialog from patches.py
Expand Down

0 comments on commit 4be2864

Please sign in to comment.