Skip to content

Instantly share code, notes, and snippets.

@r618
Forked from AlexandreRangel/now-play-this.rb
Created June 3, 2016 10:38
Show Gist options
  • Save r618/808c914243969d472ef6d0208132690d to your computer and use it in GitHub Desktop.
Save r618/808c914243969d472ef6d0208132690d 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