Three days ago I created this pull request: initial version of "MIDI PC/CC" plugin script by BrentBaccala · Pull Request #986 · Ardour/ardour · GitHub
It’s a Lua script that handles MIDI Program Change messages by activating and deactivating tracks, and handles MIDI CC messages by running arbitrary Lua code. All of this is configured using the track comment blocks.
This is a continuation of what I was discussing here: Lua Program Change plugin
As discussed on that thread, Vanderkolfg created a script that (de)activates tracks based on their naming. I thought that was a pretty good idea, but decided to use the comment blocks instead.
The new script also lets you adjust presets, which what Vanderkolfg was discussing in this thread: Change plugin presets with Lua DSP script
So, for example, to set preset “bwb” on the “MaGigaverb” plugin, I add the following statements to the track’s comment block:
MIDI Program 0-127
MIDI CC 93: load_preset(route, “MaGigaverb”, “bwb”)
load_preset() is a convenience function that I defined in the script. You can put in arbitrary Lua code.
There’s more documentation in the script’s description.
Any feedback?