dotfiles/.local/bin/scripts/freq

7 lines
169 B
Plaintext
Raw Normal View History

2021-11-14 13:28:55 +00:00
#!/bin/sh
# Show a frequance spectrogram using sox and timg
out=${2:-/tmp/$1-sox.png}
mkdir -p "$(dirname "$out")"
sox "$1" -n spectrogram -o "$out"
timg --title "$out"