dotfiles/.local/bin/scripts/freq
2021-11-14 14:30:11 +01:00

6 lines
169 B
Bash
Executable file

#!/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"