I would like to know how can i send MIDI Control Change messages from a Python script to an application called rakarrack, which receives MIDI messages to change volumes, turn on/off FX's, etc. All this done via JACK/ALSA.
At this point i just try with the library python-rtmidi (the code i wrote is based on the example provided there), but when i try to send the messages, rakarrack doesn't do anything. I think because is not receiving anything. I already check the Preference in the application and the MIDI In device (which is created from Python) is listed as 'rtmidi' and selected.
import time import rtmidi midiout = rtmidi.MidiOut() available_ports = midiout.get_ports() if available_ports: midiout.open_port(0) else: midiout.open_virtual_port("My virtual output") control = [0x74, 116, 124] midiout.send_message(control) del midiout
As you can see, I'm trying to send one control message [0x74, 116, 124] , I took those numbers from here: http://rakarrack.sourceforge.net/midiic.html