문제

i want to analyze multiple mp3 files and get the bpm of the files. Therefore i'm using soundstretch. At first i'm converting the mp3 files using sox

sox -t mp3 -r 44100 -c 2 file.mp3 -t wav file3.wav

after this i want to analyze the track with soundstretch

soundstretch file.wav -bpm

this also gives me the result in the console. But i'm not able to redirect the printed response to a file. i already tried stuff like

soundstretch file.wav -bpm > file.mp3.bpm
soundstretch file.wav -bpm 2>&1 > file.mp3.bpm

the only result is, that the messages are displayed in the console and there is a empty file

도움이 되었습니까?

해결책

Switch it around if you want one file

soundstretch file.wav -bpm > file.mp3.bpm  2>&1

or use two file two files:

soundstretch file.wav -bpm 2> file.mp3.err > file.mp3.bpm

다른 팁

I think you should use the soundstretch as

soundstretch inputFile outputFile options

ex. : soundstretch Sample.waw out.txt -bpm

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top