[Ardour-Dev] Playlist ordering (track ordering)

John Emmas johne53 at tiscali.co.uk
Sun Feb 17 03:32:15 PST 2008


Hi Paul,

For the past few weeks I've been working on some code to enable Ardour
sessions to be merged.  I'm only merging the audio elements such as Sources,
Regions and Playlists (although along the way, I can need to create new
Crossfades / Routes / AudioDiskstreams etc).  I've finished the code for
merging Sources & Source Regions and I'm pretty close to finishing the code
for merging Playlists.  However, I've found something strange in the way
that the merged session is being loaded....

Let's say the first session had 4 x playlists called Audio1, Audio2, Audio3
and Audio4 (in that order).  The second session had 3 x playlists in the
order Audio5, Audio6 and Audio7.  In the (merged) session-state file, the
merged playlists are ordered thus (reading the XML file as a text file):-

Audio1
Audio2
Audio3
Audio4
Audio5
Audio6
Audio7

but when I load the resultant session into Ardour, I can end up with an
arrangement looking something like this:-

Audio1
Audio5
Audio2
Audio3
Audio7
Audio4
Audio6

I just wondered what strategy is used by Ardour to determine which playlist
will be topmost / next / bottommost etc and is it something I can influence
within the session-state file?

Thanks,

John




More information about the Ardour-Dev mailing list