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

andy news4 at earthsong.free-online.co.uk
Thu Sep 30 15:53:04 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.
> 

I think it's because you have a mono track in there. 

If you add this line:

        $s1=$s0 if (not defined $s1);

after the 'my $s0=...' line, then it should work with mono tracks as well.
(it will just copy the mono track into both channels of a stereo flac
file. - If you need to keep the tracks as mono, it needs an option in the
bit where it calls ecasound and the flac encoder. I could write this but
I'd rather not unless there's a need for it.)


-- 
http://www.niftybits.ukfsn.org/

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