annotate bin/musicUnpad @ 2450:a4052905ca7d default tip

notes about how rdfdb syncs, or should sync
author drewp@bigasterisk.com
date Mon, 03 Jun 2024 23:01:54 -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%