Using Vamp Plugins and Hosts > Host Forum: Sonic Visualiser
SV tag files syntax
(1/1)
bobonofx:
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:
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: ---$ 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
$
--- End code ---
Chris
longgone8:
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 :)
Navigation
[0] Message Index
Go to full version