Fortraneries/SoundBrotching/demos.sh

26 lines
445 B
Bash
Raw Normal View History

2022-02-07 23:17:22 +01:00
#!/bin/bash
INWAV="1637.wav"
OUTWAV="foo.wav"
2022-05-05 06:58:45 +02:00
DATAFILE="waves.text"
2022-02-07 23:17:22 +01:00
2022-05-05 06:58:45 +02:00
# XXX ./wav2text $INWAV | ./panoramix | ./text2wav $OUTWAV
2022-02-07 23:17:22 +01:00
2022-05-05 06:58:45 +02:00
OUTWAV="quux.wav"
2022-02-07 23:17:22 +01:00
2022-05-23 11:11:09 +02:00
./genwaves | tee $DATAFILE | c-tools/text2wav $OUTWAV
2022-05-05 06:58:45 +02:00
sndfile-spectrogram \
--min-freq=30 --max-freq=4000 \
--hann \
$OUTWAV \
1200 600 \
spectrogram.png
sndfile-waveform \
-c -2 \
-g 1200x600 \
$OUTWAV waveform.png
# echo " HEAD OF DATAS" ; head $DATAFILE