blob: b91af40c823c8733972951a52f3379a9daa28628 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
#
# Date: 2009-11-30
# Author: Ole Kristian Lien
# License: GNU General Public License
#
# Creates a audio spectrogram
EXT=`echo "$1"|awk -F . '{print $NF}'`
NAME=`basename $1 .$EXT`
if [ -z "$1" ]; then
echo "Usage: $0 <audio-file>"
exit 1
fi
echo -n " * Generating spectrogram..."
sox $1 -n spectrogram
mv spectrogram.png $NAME.png
echo -e "OK!"
|