notes/Playing Tones with Sox-0yNw9d29.sh
#Generating Synth Tones with SoX

sudo apt install sox

#play a tone  (-n means no input) (Ctrl-C to kill)

play -n synth

#fade the tone in and out
play -n synth fade 1 2 1
play -n synth fade .5 2 .5

#play a set note
play -n -c1 synth sin %-12 fade h 0.1 1 0.1

play -n -c1 synth sin %-9 fade h 0.1 1 0.1
play -n -c1 synth sin %-5 fade h 0.1 1 0.1
play -n -c1 synth sin %-2 fade h 0.1 1 0.1

#play a cord

play -n -c1 synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1

syntax highlighted by Code2HTML, v. 0.9.1