Skip to content

Instantly share code, notes, and snippets.

@kbhaines
Created September 15, 2019 09:07
Show Gist options
  • Select an option

  • Save kbhaines/4af6fc1cff9a68f81c2aba54022d852f to your computer and use it in GitHub Desktop.

Select an option

Save kbhaines/4af6fc1cff9a68f81c2aba54022d852f to your computer and use it in GitHub Desktop.
Simple CD recording script, also converting wav to 44.1KHz
#!/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