I've got it working mostly, but there's one thing I can't figure out: How do I send MPE data to a NoteInput?
Usually, you'd setup the filters for your NoteInput so that any note and controller data is directly forwarded the selected track. However, in my usecase, when the Linnstrument is switched to be a clip launcher, I don't want any notes to be forwarded to the track. Whenever I switch back to the regular midi controller mode, I want the notes to be forwarded to the track. This is where I'm stuck. The NoteInput either forwards note messages always or never. I can't make it switchable.
So then I decided to handle the forwarding myself in the onMidi() function of my script. When the cliplauncher mode is activated, I use the incoming MIDI messages to start/stop/record clips, etc. When the regular linnstrument mode is activated, I forward the incoming MIDI messages to the track by calling
Code: Select all
noteInput.sendRawMidiEvent(status, data1, data2);
So, the question is: Can the NoteInputs filtering be switched on and off? (I dont think so from the documentation) Or can I otherwise enable/disable the forwarding? Or can I send notes to the track, without dropping the MIDI channel information?