Skip to content

Instantly share code, notes, and snippets.

@AlexandreRangel
Created June 3, 2016 10:27
Show Gist options
  • Save AlexandreRangel/b5dc6386fdb7c07576fc2610e5cb4580 to your computer and use it in GitHub Desktop.
Save AlexandreRangel/b5dc6386fdb7c07576fc2610e5cb4580 to your computer and use it in GitHub Desktop.
Sonic Pi 2.10 music code
use_synth :growl
64.times do
play rrand(30,90),
attack: rrand(4,16), sustain: rrand(2,4),
release: rrand(4,24), slide_shape: 3,
cutoff: rrand(62,112),
cutoff_slide: [2,4,8,12].choose,
res: rrand(0,0.99),
res_slide: [2,4,6].choose,
pan: rrand(-0.4,0.4),
pan_slide: [1,2,4,6,8].choose,
amp: rrand(0.222,0.333),
amp_slide: [1,2,2,4,4,4,8].choose
sleep [1,2,3,4,6].choose
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment