[ardour-users] Re: perl script to extract regions from ardour session.

andy news4 at earthsong.free-online.co.uk
Thu Sep 30 12:15:21 PDT 2004

On Thu, 30 Sep 2004 09:40:00 +0200, Wolfgang Woehl wrote:

> Jesse Chappell <jesse at essej.net>:
>> andy wrote on Tue, 28-Sep-2004:
>>  > >> my ($s1fe)=$twig->get_xpath("/Session/Sources/Source[\@id=\"$s1\"]");
>>  > >
>>  > > this returns an undefined value. Do you mean
>>  > >
>>  > > "source" -> source-0
>>  > > "source-0" -> source-1 ?
>>  > >
>>  > > Wolfgang
>>  >
>>  > sorry, it's this bit .
>>  >
>>  > <Region id="1096228188964266" name="rec2.1" start="0" length="30222336"
>>  > position="1359872" layer="0" sync-position="0" flags="0x31a"
>>  > scale-gain="1.000000" source="1096225604226481"
>>  > source-0="1096225604226481" source-1="1096225604226886" channels="2">
> Andy: A new session made with Ardour/GTK 0.531.1 libardour 0.832.2 has 
> "source" and "source-0". Must be missing something since you do have 
> "source-1". Tell me what.

One thing is you have an old version of ardour. The old versions recorded
both channels in one wav file I think, so this may be the problem. Also,
this script isn't meant to cope with mono or multichannel tracks, just
stereo. So you could either upgrade ardour, or rewrite the script to pull
both channels out of one wav. (Not hard).

I wrote it for recording and streaming audio from a community radio
station, where we're going to be recording a series of shows one day after
the next - the idea of the script is to make it easy to archive all the
recorded sessions at the end of the day, rather than having to mess about
with exporting each region individually, or splitting a single record
session using an audio editor.


remove 'n-u-l-l' to email me. html mail or attachments will go in the spam
bin unless notified with [html] or [attachment] in the subject line. 

More information about the Ardour-Users mailing list