Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fluidpatcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ def _midisignal_handler(self, sig):
sig.patch = -1
sig.val = 0
if self.midi_callback: self.midi_callback(sig)
if 'patch' in sig:
return True

def _refresh_bankfonts(self):
sfneeded = set()
Expand Down
6 changes: 3 additions & 3 deletions fluidpatcher/pfluidsynth.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ def custom_midi_router(self, event):
elif LADSPA_SUPPORT and 'ladspafx' in rule:
if res.ladspafx in self.ladspafx:
self.ladspafx[res.ladspafx].setcontrol(res.port, res.val)
else:
# not handled here, pass it to the callback
if self.midi_callback: self.midi_callback(res)
elif self.midi_callback:
# not handled here, pass result to the callback
if self.midi_callback(res): return
if dt > 0: self.clocks = t, self.clocks[0]
if self.midi_callback:
# send the original event to the callback
Expand Down