Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created May 9, 2016 02:21
Show Gist options
  • Save nicoder/1085de8c67ad639641711efb1e934380 to your computer and use it in GitHub Desktop.
Save nicoder/1085de8c67ad639641711efb1e934380 to your computer and use it in GitHub Desktop.
# sample lines were copied from somewhere, maybe the Sonic Pi mailing list, maybe Robin Newman
live_loop :groove do
tick
sample sample_names(:tabla).choose, beat_stretch: 0.25 if spread(7, 13).look
sample sample_names(:drum).choose, beat_stretch: 0.25 unless spread(5, 13).look
sample :sn_zome,beat_stretch: 0.25 if spread(5,8).look
sample :bd_haus,amp: 2 if look % 4 == 0
play (ring 51, 46, 48).stretch(32).look, release: 0.8, amp: 2 if look % 4 == 0
play 72, release: 0.2
play (ring 60, 65, 60, 67).stretch(8).look, release: 0.2
sleep 0.15
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment