I was wondering if it is possible to generate the “automation” data for a track and feed/load it into the automation lane. For instance creating the automation data with help of a script (to what ever suitable data-format), and load it afterwards into the automation pseudo-track. Is this possible?
You could either directly modify the .ardour session file while Ardour is not running, it is a XML text file and automation is just a a “time value” pair, one per line.
Alternatively you can use Ardour’s Lua scripting to directly create automation data inside Ardour. There are a couple of examples:
Great! As I don’t know Lua-scripting I will try first going with the XML-parsing/modifying.
I am looking at a ardour-session file of mine, and I see in it parts like:
Is this the correct element to modify? And how should I interpret the pairs within the <events> element? What is the aXXXXX part? (I suppose the float after it is the automation-parameter value?)
And by-the-way: before going any further I should ask: is automation also applicable to plugins? E.g. can I have a filter- or reverb-plugin controlled as an automation-lane? Because this is what I ultimately am trying to do.
Thank you for your answer!
I suppose for creating an automation programmatically (needing to know where the signal onset is in a track, and many other finer decision-factors), it is not a real solution to modify the XML file? So learning Lua scripting seems unavoidable!? Or is there any way to get such information (e.g. signal-portions of a track) from the XML?