Created
July 22, 2017 02:28
-
-
Save azimut/0b06b3f33facc5905e62352761f65a68 to your computer and use it in GitHub Desktop.
Create spectrograms from a bunch of audio files, try also with "rate 4k" to "zoom" bottom part
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
a=0 | |
for i in ~/music/*mp3; do | |
((a++)) | |
sox \ | |
"$i" \ | |
-n remix 1 spectrogram \ | |
-m -h \ | |
-p 2 \ | |
-z 80 \ | |
-s \ | |
-d 60 \ | |
-x 1000 \ | |
-c "" \ | |
-o ${a}.spectrum.png | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment