Skip to content

Instantly share code, notes, and snippets.

@nicoder
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicoder/44a10ff6d5a27275a53d to your computer and use it in GitHub Desktop.
Save nicoder/44a10ff6d5a27275a53d to your computer and use it in GitHub Desktop.
20150111 sonic pi
live_loop :main do
#with_fx :echo, decay: 0.001 do
# with_fx :slicer, phase: 0.1 do
# with_fx :wobble, phase: 0.2 do
# with_fx :distortion, distort: 0.9 do
play scale(:e1, :major, num_octaves: 10).choose, amp: 0.6
# end
# end
# end
#end
sleep 0.25
end
live_loop :kick do
# sync :main
sample :drum_heavy_kick, amp: 2
with_fx :echo, decay: 0.6, phase: 0.15 do
sample :drum_heavy_kick, amp: 3, pan: rrand_i(-1, 1)
end
sleep 0.5
end
live_loop :hat do
#sync :main
sleep 0.5
with_fx :echo, phase: 0.1, decay: 0.4 do
sample :drum_cymbal_closed, rate: 2.1, pan: 1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment