self.realtimeMidiThroughLayer=self.scene.add_new_midi_layer(self.cboxMidiPortUid)#Create a midi layer for our input port. That layer support manipulation like transpose or channel routing.
cbox.JackIO.set_appsink_for_midi_input(self.cboxMidiPortUid,True)#This sounds like a program wide sink, but it is needed for every port.
cbox.JackIO.route_midi_input(self.cboxMidiPortUid,self.scene.uuid)#Route midi input to the scene.
cbox.JackIO.set_appsink_for_midi_input(self.cboxMidiPortUid,True)#This enables forwarding to Python for our midiProcessors get_new_events(self.parentInput.cboxMidiPortUid)
cbox.JackIO.route_midi_input(self.cboxMidiPortUid,self.scene.uuid)#Route midi input to the scene. Without this we have no sound, but the python processor will still work.