[ardour-users] Re: perl script to extract regions from ardour session.
Jesse Chappell
jesse at essej.net
Tue Sep 28 14:02:26 PDT 2004
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">
As you'll notice, source and source-0 refer to the same object.
source was left there for backwards compatibility a long time
ago (back when multichannel tracks were introduced). Just to
clarify....
jlc
More information about the Ardour-Users
mailing list