# HG changeset patch # User drewp@bigasterisk.com # Date 2022-06-03 06:21:00 # Node ID e42679dfdfd966040112ad9ebade14218bceeaf1 # Parent db403f546c79df4e56ea2361e92a069d069f4c62 unpad tool and edits for processing 2022 audio diff --git a/bin/make_spectrograms b/bin/make_spectrograms --- a/bin/make_spectrograms +++ b/bin/make_spectrograms @@ -3,6 +3,7 @@ # todo: "rainbowgrams" like page 5 of this: https://arxiv.org/pdf/1704.01279.pdf mkdir -p $LIGHT9_SHOW/spectrogram -for x ($LIGHT9_SHOW/music/pad/*) { +for x ($LIGHT9_SHOW/music/??-*) { sox $x -n remix 1 rate 3k spectrogram -X 50 -y 100 -z 80 -m -r -o $LIGHT9_SHOW/spectrogram/$x:t:r.png } + \ No newline at end of file diff --git a/bin/musicUnpad b/bin/musicUnpad new file mode 100755 --- /dev/null +++ b/bin/musicUnpad @@ -0,0 +1,9 @@ +#!/bin/zsh + +# doing a show with no baked-in-pad, but reusing a song from a show that did have it? + +IN=$1 +OUT=${IN:r}-unpad.wav + +# see notes at https://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/ +sox $IN $OUT silence 1 4 1% -1 8 0.0%