I am new here and looking at Ardour to see if it can do something I need.
Here is what I want to achieve:
I want to record two stereo (or one 4channel) audio track plus a MIDI track. I know that is not a problem.
I want to be able to launch Ardour from another program, have it automatically start the recording of the three tracks with “standard” settings stored in a session template, save the result to a file and stop recording and exit the program again from the controlling program. The filename/foldername whatever to store the session files should be supplied by the launching program (ideally), I could live with it being automatically created in case it contains date and time stamps.
Programs with a graphical user interface are not easily “automated”. You should look at some commandline programs, there probably is some that can do what you want. Sorry I don’t have a solution for you, but you can check these: sox, ecasound, arecord, even FFmpeg should be able to record audio. Recording midi in sync with audio might be a challenge though.