View Single Post
Old 01-06-2019, 03:02 PM   #390
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Not sure if LBXStripper has a different approach, as I'm a bit of a stranger to MIDI processing, but the best approach I've found is to have separate actions associated with your script that a user can bind to MIDI keys in the action list.

When one of the actions is run, it sets a variable in an ExtState or text file that your main script can periodically check, doing something when it sees that the variable has changed.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote