I suspect this is a fairly common requirement but I am struggling to set it up in a way I think is correct, and can’t find anything online.
The goal is simple. I have a sample player which I use to play drum loops while I practice. To play the loop, the sampler simply needs to receive a note-on message and to stop it needs to receive a note off-message, and the tempo is synchronised to the Gig Performer clock. I need to filter the main keyboard notes in order to stop the loop retriggering so I use the ‘Inset Piz Here’ midiConverter3 VST to convert a CC value to note-on and second instance to convert a different CC value to the same note, but off.
On my keyboard, one button generates CC46, which midiConverter3 translates to a note-on, and one button generates CC47 which midiConverter3(1) translates to the note off message. No other messages get through so the drum loop does not get re-triggered
This works but I feel the proper way to do this is to use a widget and link the widget to my keyboard, but I am struggling to figure out the correct way to do it.
Effectively I want to create a key latch, triggered by a button press (CC message)
Any thoughts or advise would be welcome - thanks