annotate bin/musicUnpad @ 2458:0e27ba33118c default tip

better blender<->asco playback cooperation. still no play support in blender; only seek
author drewp@bigasterisk.com
date Tue, 20 May 2025 16:25:06 -0700
parents e42679dfdfd9
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%