Using Vamp Plugins and Hosts > Host Forum: Sonic Visualiser
Extracting text files from audacity OR sonic visualiser
(1/1)
longgone8:
Hello, all!
I am attempting to extract data regarding the waveform of audio files in a .txt format. I saw bobonofx's post regarding doing this with the data for audacity:
$ 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
$
THis information is, specifically, for use with 'perl' language and sonic visualiser. Can anyone give me a step by step instruction about how to extract this waveform data to a .txt format? I have virtually no knowledge of computer programming.
cannam:
Hi -- do I understand that you want to convert the actual audio waveform itself to text?
The example you were quoting was talking about converting from Sonic Visualiser's comma-separated export format for annotations data, not anything to do with the audio data. There is no facility in SV for exporting the audio data in any sort of text format, I'm afraid. I can't think offhand of any program that does this... the output would be incredibly verbose.
Chris
Navigation
[0] Message Index
Go to full version