Browse Source

comment

master
Nils 2 years ago
parent
commit
9adc2fb0af
  1. 5
      template/engine/input_midi.py

5
template/engine/input_midi.py

@ -109,6 +109,9 @@ class MidiInput(object):
for hp in hardwareMidiPorts:
cbox.JackIO.port_connect(hp, cbox.JackIO.status().client_name + ":" + self.portName)
def fullName(self)->str:
return cbox.JackIO.status().client_name + ":" + self.portName
class MidiProcessor(object):
"""
@ -165,7 +168,7 @@ class MidiProcessor(object):
This function gets called very often. So every optimisation is good.
"""
events = cbox.JackIO.get_new_events(self.parentInput.cboxMidiPortUid)
events = cbox.JackIO.get_new_events(self.parentInput.cboxMidiPortUid) #We get the events even if not active. Otherwise they pile up.
if not self.active:
return
if not events:

Loading…
Cancel
Save