I've been struggling to obtain full control of Synesthesia (VJ program) with rtmidi (or any other midi scripting package) in python.
My main goal is to develop a midi controller in python which can turn potmeters in the VJ program on and off (I can do that already) and control faders contiounosly (thats my problem).
Actually what I really do is that I have a hand recognition algorithm (deep learning based) with which I want to make a midi controller out of my hand gestures.
What I could do already:
import rtmidi
midiout = rtmidi.MidiOut()
available_ports = midiout.get_ports()
if available_ports:
midiout.open_port(1)
else:
midiout.open_virtual_port("My virtual output")
# do some deep learning stuff->
#if hand recognized ->
note_on = [0x90, 60, 100]
# else
note_off = [0x80, 60, 0]
Please help I am really stucked.
Thx.