I see one Lua script example of how to automate loading a preset.
I want my program to send a message to an individual plugin to save the current preset. I cannot find anything in scripting, OSC, or MIDI control for this; only for browsing or loading presets.
I see hundreds of scripting commands and actions listed in the docs. What command could tell Ardour to save the current preset?
Many plugins have begun to implement the Scala tuning file format, .scl; but all of them implement it only by mouseclick. Fine, then, my program can rewrite the same .scl file over and over as tuning changes. But none of these plugins ever even reload the same file. This functionality is provided to be used ONLY by end-users, click by click, never by programs. In most cases, they assume you want to “play around” with a couple of tunings. Well, I discovered that if I manually create a preset for whichever plugin, load a .scl file, change the already loaded .scl file on disk, and finally save the current state over the preset in Ardour, the plugin does indeed reload the .scl file (I tried with Amsynth, and with Plogue Sforzando on Windows, and I hope it applies to others). But this is one action that, as far as I can find out, Ardour does not allow to be automated: to save over the current preset. In fact, with 5.12.0 on Debian testing, it takes at least a minute of 106% CPU usage for Ardour to recover from saving the preset by mouse click, but it does work.