Last active
August 29, 2015 14:13
-
-
Save nicoder/44a10ff6d5a27275a53d to your computer and use it in GitHub Desktop.
20150111 sonic pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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