Created
February 28, 2015 08:15
-
-
Save nicoder/0a00359553ec41646b4a to your computer and use it in GitHub Desktop.
20150228 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 | |
use_synth :fm | |
play 50 + [0, 12].choose, release: 0.15, amp: rrand(0.5, 0.7) | |
sleep 0.125 | |
end | |
live_loop :sec do | |
#sync :main | |
use_synth :mod_fm | |
play 66, release: 0.15, amp: 0.125, mod_range: 24 | |
play 69, release: 0.15, amp: 0.125, mod_range: 24 | |
sleep 0.25 | |
end | |
live_loop :third do | |
d = 0.5 | |
sample :bd_ada | |
sleep d / 4 | |
sample :bd_ada if one_in 2 | |
sleep d * 3 / 4 | |
end | |
live_loop :for do | |
sync :third | |
sleep 0.5 | |
with_fx :reverb, mix: 0.1, damp: 1 do | |
sample :drum_snare_hard, amp: 0.5 | |
end | |
sleep 0.5 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment