aboutsummaryrefslogtreecommitdiff
path: root/unittest/spectrogram.sh
diff options
context:
space:
mode:
authordrowe67 <[email protected]>2023-07-14 10:33:23 +0930
committerGitHub <[email protected]>2023-07-14 10:33:23 +0930
commit6588e77f38bdebd7adffe091b22e7760d95d0ccb (patch)
treee015b6d01db10ff219f5d1cf49eb3dcadb7dbe48 /unittest/spectrogram.sh
parentac7c48b4dee99d4c772f133d70d8d1b38262fcd2 (diff)
parent98992bc3585124981450659394d6f84032b81370 (diff)
Merge pull request #1 from drowe67/dr-cleanup
Cleanup
Diffstat (limited to 'unittest/spectrogram.sh')
-rwxr-xr-xunittest/spectrogram.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/unittest/spectrogram.sh b/unittest/spectrogram.sh
deleted file mode 100755
index 87d3fa2..0000000
--- a/unittest/spectrogram.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env bash
-# spectrogram.sh
-#
-# Render a spectrogram from a wave file.
-
-PATH=${PATH}:${HOME}/codec2/build_linux/src
-CODEC2=${HOME}/codec2
-
-fullfile=$1
-filename=$(basename -- "$fullfile")
-extension="${filename##*.}"
-filename="${filename%.*}"
-
-echo "pkg load signal; warning('off', 'all'); \
- s=load_raw('${fullfile}'); \
- plot_specgram(s, 8000, 500, 2500); print('${filename}.jpg', '-djpg'); \
- quit" | octave-cli -p ${CODEC2}/octave -qf > /dev/null