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

andy news4 at earthsong.free-online.co.uk
Tue Sep 28 15:00:40 PDT 2004


On Tue, 28 Sep 2004 18:30:00 +0200, Wolfgang Woehl wrote:

> andy <news4 at earthsong.free-online.co.uk>:
> 
>> my $s1=$reg->att("source-1");
>> my $s0=$reg->att("source-0");
> 
> Don't have "session-1" in my ardour files so
> 
>> 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

With my version of ardour, the config file has a section like this in it:

  <Sources>
    <Source name="rec1-1.wav" id="1096225604209820" timestamp="1096228188" captured-for="rec1"/>
    <Source name="rec1-2.wav" id="1096225604210473" timestamp="1096228188" captured-for="rec1"/>
    <Source name="rec2-1.wav" id="1096225604226481" timestamp="1096228188" captured-for="rec2"/>
    <Source name="rec2-2.wav" id="1096225604226886" timestamp="1096228188" captured-for="rec2"/>
  </Sources>

I think the config changed a few versions ago, so you might have an old
version.


-- 
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