Skip to content

Instantly share code, notes, and snippets.

@tgck
Created August 20, 2016 13:09
Show Gist options
  • Save tgck/4938ba625abcd598b1d3553c4f07d36d to your computer and use it in GitHub Desktop.
Save tgck/4938ba625abcd598b1d3553c4f07d36d to your computer and use it in GitHub Desktop.
genAiffSine.sh
#!/bin/bash
#sox -n sin440.aif synth 0.5 sin 440 gain -10
for i in {0..12};
do
freq=`echo "(440.0) * ($i / 12) + 440.0" | bc`
#echo $freq
echo sox -n sin_$freq.aif synth 0.5 sin $freq gain -10
sox -n sin_$freq.aif synth 0.5 sin $freq gain -10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment