Created
September 15, 2019 09:07
-
-
Save kbhaines/4af6fc1cff9a68f81c2aba54022d852f to your computer and use it in GitHub Desktop.
Simple CD recording script, also converting wav to 44.1KHz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| echo "Recording CD for the following tracks:" | |
| tracks=`ls *wav` | |
| echo $tracks | |
| echo "Press ENTER" | |
| read x | |
| cdrs="" | |
| for t in $tracks;do | |
| echo "Processing $t" | |
| cdrs="$cdrs $t.cdr" | |
| sox $t -r 44100 $t.cdr | |
| #sox $t.cdr.tmp $t.cdr | |
| #rm $t.cdr.tmp | |
| done | |
| echo "Tracks ready, press ENTER" | |
| read x | |
| cdrecord -eject -speed=8 -pad -audio $cdrs | |
| rm -f $cdrs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment