Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created March 4, 2015 06:56
Show Gist options
  • Save nicoder/e78c8e97b5bd257a721b to your computer and use it in GitHub Desktop.
Save nicoder/e78c8e97b5bd257a721b to your computer and use it in GitHub Desktop.
20150303 sonic pi
live_loop :main do
sample :drum_bass_hard if one_in 2
sleep rrand(0.25, 0.75)
end
live_loop :second do
sync :main
d = rrand_i(1, 2)
sample :bass_dnb_f, amp: 0.5,
rate: [1, 1.2, 1.4].choose, release: d,
attack: 0, sustain: 0
sleep d
end
live_loop :third do
sync :main
with_fx :level do
sample :drum_cymbal_open,
rate: rrand(-0.8, -1.2), amp: 0.3
end
sleep 0.25
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment