Mercurial > code > home > repos > light9
annotate bin/musicUnpad @ 2326:e9caffe926df
attribute 'nounlink' to save space
author | drewp@bigasterisk.com |
---|---|
date | Thu, 01 Jun 2023 18:30:25 -0700 |
parents | e42679dfdfd9 |
children |
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% |