Skip to content
Closed
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
5 changes: 4 additions & 1 deletion zyngine/zynthian_chain_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ def add_chain(self, chain_id, midi_chan=None, midi_thru=False, audio_thru=False,
except Exception as e:
unroute = False
logging.warning(f"ctrldev_manager => {e}")
lib_zyncore.zmop_set_route_from(chain.zmop_index, zmip, not unroute)
if isinstance(unroute, bool) or unroute == 0xffff:
lib_zyncore.zmop_set_route_from(chain.zmop_index, zmip, not unroute)
else:
lib_zyncore.zmop_set_route_from(chain.zmop_index, zmip, True)
# Enable StepSeq MIDI intput
lib_zyncore.zmop_set_route_from(chain.zmop_index, ZMIP_STEP_INDEX, True)
# Enable SMF sequencer MIDI intput
Expand Down
4 changes: 2 additions & 2 deletions zyngine/zynthian_ctrldev_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def load_driver(self, izmip, driver_name=None):
# Unroute from chains if driver want it
if driver.unroute_from_chains:
if isinstance(driver.unroute_from_chains, bool):
lib_zyncore.zmip_set_ui_midi_chans(izmip, 0xF)
lib_zyncore.zmip_set_ui_midi_chans(izmip, 0xFFFF)
elif isinstance(driver.unroute_from_chains, int):
lib_zyncore.zmip_set_ui_midi_chans(izmip, driver.unroute_from_chains)
else:
Expand Down Expand Up @@ -199,7 +199,7 @@ def get_driver_class_name(self, izmip):
def is_input_device_available_to_chains(self, idev):
if idev in self.drivers and self.drivers[idev].unroute_from_chains:
unroute_from_chains = self.drivers[idev].unroute_from_chains
if isinstance(unroute_from_chains, bool) or unroute_from_chains == 0xF:
if isinstance(unroute_from_chains, bool) or unroute_from_chains == 0xFFFF:
return False
return True

Expand Down