Receive input MIDI message from device into reascript
I'm am repurposing the faders and knobs on a BCF 2000 I have and have been trying to get the midi messages into a reascript to use them to control different things.
I must admit I am fairly new to dealing with midi messages so I'm sorry if I talk utter crap at any point.
Basically what I want is to read the midi value (1 -> 127) from the midi input device, store it into a variable as an int and play around with it from there on. But I can't seem to figure out how to read these values if the midi is not recorded into a media item. but the API function kbd_OnMidiEvent(MIDI_event_t* evt, int dev_index) keeps on giving me hope that it might be possible due to it's naming.
Has anyone had any luck with anything similar?
|