Browse Source

Fix midi thru input to be available from program start, without moving the cursor first

master
Nils 6 years ago
parent
commit
98fcc47bfa
  1. 5
      midiinput/stepmidiinput.py

5
midiinput/stepmidiinput.py

@ -61,7 +61,8 @@ class StepMidiInput(MidiInput):
self.midiProcessor.register_NoteOff(self._pop)
api.callbacks.setCursor.append(self._setMidiThru) #When the track changes re-route cbox RT midi thru
api.callbacks._setCursor(destroySelection = False) #Force once to trigger a cursor export which calls our midi thru setter
@property
def midiInIsActive(self):
try:
@ -97,7 +98,7 @@ class StepMidiInput(MidiInput):
def _setMidiThru(self, cursorExport):
"""We don't need to react to deleted tracks because that does reset the cursor.
The template midi in does _not_ check if the routed output ports still exist.
however, that is a low risk state that needs changes in the program"""
however, that is a low risk state that needs changes in the program"""
self.setMidiThru(cursorExport["cboxMidiOutUuid"])
stepMidiInput = StepMidiInput() #global to use in other parts of Laborejo

Loading…
Cancel
Save