Vamp Plugins Forum

Using Vamp Plugins and Hosts => Host Forum: Sonic Visualiser => Topic started by: bobonofx on December 19, 2008, 09:57:23

Title: SV tag files syntax
Post by: bobonofx on December 19, 2008, 09:57:23
HI,

I'd like to tag an audio file and export it in a .txt format :

Start time   End time    SourceA
Start time   End time    SourceB
Start time   End time    SourceC
Start time   End time    SourceA
...

Which is equivalent to audacity way of tagging

How can I proceed?

Cheers

Boris
Title: Re: SV tag files syntax
Post by: cannam on January 09, 2009, 10:45:52
Boris,

Sorry to take so long to respond.

Do you mean that you want start time and end time as opposed to start time and duration, which SV normally exports?

If so, then I'm afraid I can't think of a way to do this using SV at the moment -- but it's a good candidate for an additional feature, if you would like to submit a feature request using the SourceForge tracker.

In the mean time, one could always convert the files using an external tool.  To take the immortal example of Perl:

Code: [Select]
$ cat test.txt
1.223 2.1543 sourceA
2.542 14.133 sourceB
3.161 0.041 sourceC
$ cat rewrite.pl
while (<>)
{
    my ($a,$b,$c) = split /\s+/;
    $b = $a + $b;
    print join " ", ($a,$b,$c), "\n";
}
$ perl rewrite.pl test.txt
1.223 3.3773 sourceA
2.542 16.675 sourceB
3.161 3.202 sourceC
$


Chris
Title: Re: SV tag files syntax
Post by: longgone8 on January 26, 2010, 19:07:49
Can anyone please explain to me how to export a file from either audacity OR Sonic Visualiser so that I can recieve a text file of the audio waveform? Thanks  :)