changeset 2119:e42679dfdfd9

unpad tool and edits for processing 2022 audio
author drewp@bigasterisk.com
date Thu, 02 Jun 2022 23:21:00 -0700
parents db403f546c79
children 0745923e912f
files bin/make_spectrograms bin/musicUnpad
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/make_spectrograms	Thu Jun 02 23:20:14 2022 -0700
+++ b/bin/make_spectrograms	Thu Jun 02 23:21:00 2022 -0700
@@ -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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/musicUnpad	Thu Jun 02 23:21:00 2022 -0700
@@ -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%