Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created January 8, 2015 17:32
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/fab1192573c17bd32ce4 to your computer and use it in GitHub Desktop.
Save nicoder/fab1192573c17bd32ce4 to your computer and use it in GitHub Desktop.
20150108 sonic pi
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