Created
January 8, 2015 17:32
-
-
Save nicoder/fab1192573c17bd32ce4 to your computer and use it in GitHub Desktop.
20150108 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 :mod_beep | |
use_synth_defaults note: :e3, | |
mod_range: (scale(:e1, :major, num_octave: 2).choose - 24), | |
release: 0.3 | |
with_fx :echo do | |
play 60 | |
end | |
sleep 1 | |
end | |
live_loop :beat do | |
# sync :main | |
sample :bd_boom | |
if one_in 12 | |
sleep 0.5 | |
else | |
sleep 0.125 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment