Author Topic: SV tag files syntax  (Read 5738 times)

bobonofx

  • Newbie
  • *
  • Posts: 1
    • View Profile
SV tag files syntax
« 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

cannam

  • Administrator
  • Sr. Member
  • *****
  • Posts: 273
    • View Profile
Re: SV tag files syntax
« Reply #1 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

longgone8

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: SV tag files syntax
« Reply #2 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  :)