annotate bin/musicUnpad @ 2119:e42679dfdfd9

unpad tool and edits for processing 2022 audio
author drewp@bigasterisk.com
date Thu, 02 Jun 2022 23:21:00 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2119
e42679dfdfd9 unpad tool and edits for processing 2022 audio
drewp@bigasterisk.com
parents:
diff changeset
1 #!/bin/zsh
e42679dfdfd9 unpad tool and edits for processing 2022 audio
drewp@bigasterisk.com
parents:
diff changeset
2
e42679dfdfd9 unpad tool and edits for processing 2022 audio
drewp@bigasterisk.com
parents:
diff changeset
3 # doing a show with no baked-in-pad, but reusing a song from a show that did have it?
e42679dfdfd9 unpad tool and edits for processing 2022 audio
drewp@bigasterisk.com
parents:
diff changeset
4
e42679dfdfd9 unpad tool and edits for processing 2022 audio
drewp@bigasterisk.com
parents:
diff changeset
5 IN=$1
e42679dfdfd9 unpad tool and edits for processing 2022 audio
drewp@bigasterisk.com
parents:
diff changeset
6 OUT=${IN:r}-unpad.wav
e42679dfdfd9 unpad tool and edits for processing 2022 audio
drewp@bigasterisk.com
parents:
diff changeset
7
e42679dfdfd9 unpad tool and edits for processing 2022 audio
drewp@bigasterisk.com
parents:
diff changeset
8 # see notes at https://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/
e42679dfdfd9 unpad tool and edits for processing 2022 audio
drewp@bigasterisk.com
parents:
diff changeset
9 sox $IN $OUT silence 1 4 1% -1 8 0.0%