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.
|