Advertisement
metalx1000

Playing Tones with Sox

Dec 11th, 2017
824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | None | 0 0
  1. #Generating Synth Tones with SoX
  2. sudo apt install sox
  3.  
  4. #play a tone  (-n means no input) (Ctrl-C to kill)
  5. play -n synth
  6.  
  7. #fade the tone in and out
  8. play -n synth fade 1 2 1
  9. play -n synth fade .5 2 .5
  10.  
  11. #play a set note
  12. play -n -c1 synth sin %-12 fade h 0.1 1 0.1
  13. play -n -c1 synth sin %-9 fade h 0.1 1 0.1
  14. play -n -c1 synth sin %-5 fade h 0.1 1 0.1
  15. play -n -c1 synth sin %-2 fade h 0.1 1 0.1
  16.  
  17. #play a cord
  18. play -n -c1 synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement