right now I try to send a midi-CC message to the external midi-device of the current midi-track using a 'Midi Remote Script' (in python).
I can manage to get to the name (and port) of the current device using:
Code: Select all
cur_track = self.song().view.selected_track
cur_midi_device = cur_track.current_output_routing # string of the device name
cur_midi_channel = cur_track.current_output_sub_routing # string of the device port
But what I actually want to do is sending a Midi-CC message (CC 7) to that device, whenever the value_listener() of a fader gets new values.
That's where I'm stuck right now, because I really don't know where to send the bytes to. I think self._send_midi( ... ) seems to send the midi-message back to the controller-device, but that's not what I want. Looking through API-functions, I didn't find anything that might actually send data to the current output_routing of a midi track.
I find self._c_instance.set_cc_translation( ... ) a bit suspicious, but honestly I'm running out of ideas here, so any help is greatly appreciated