Session templates do not work with linuxsampler lv2 (see http://tracker.ardour.org/view.php?id=5809 ) and I have a huge session with tens of tracks for an orchestral template.
I am trying to find a a workaround : I have coded a python script that copies the session and changes the names appropriately, that you can find here : http://pastebin.com/DL18r6ve .
However, although the initial session works, and I can create regions on it, in the new one, after copying, I cannot create new regions, and Ardour crashes with an error about SMF.
So, do I have to modify anything else than what I modify in the script to have a functional session ?
Finally, I found the reason of the error.
I did not rename the directory interchange/sessionName to interchange/newSessionName.
It entailed that Ardour would not find some midi regions I had created in the template to test (and removed after that off the track, but Ardour keeps them).
Well, I do not know the spec of an ardour session file. In what source files could I look at to understand it ? And specifically for the id counter ?
For what I understand, as long as the id counter is an unique id in the session file, it should work (and yes, it is not the case in my script but I am going to fix that) ; is that right ?