Controlling MIDI File Player through GPScript

Here, not directly related, a gig which shows how to map incoming CC message in the Global MIDI to switch down a rackspace or SongPart.
But the incoming CC message is not lost

The trick is to get the CC message and inject it into the new “Local GP Port”.
Now in Rig Manager you can learn an Alias to this message and assign it to whatever you want.
But as it is injected it is not lost in this example to get it from the MIDI In /IAC-Treeiber IAC-Bus 1)
Inject.gig (49.7 KB)

And here the code

//Called when a CC message is received
On ControlChangeEvent(m : ControlChangeMessage)
 InjectMidiEvent("Local GP Port", m)
End
1 Like