Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created February 25, 2015 05:11
Show Gist options
  • Save nicoder/67db80e905cd199245f4 to your computer and use it in GitHub Desktop.
Save nicoder/67db80e905cd199245f4 to your computer and use it in GitHub Desktop.
20150225 sonic pi
live_loop :main do
with_fx :echo, phase: 0.125, decay: 8 do
play 50
sleep 0.5
sample :elec_plip
sleep 0.5
play 62
sleep 1
end
end
live_loop :sec do
use_synth :mod_fm
use_synth_defaults mod_range: 12
play [38, 38, 38, 38, 38, 40, 43, 43].choose
sleep 1
end
live_loop :third do
#sync :main
with_fx :hpf do
sample :drum_cymbal_pedal, amp: rrand(0.5, 0.8) unless one_in 12
end
sleep 0.25
end
live_loop :fourth do
# sync :main
sleep 1
with_fx :echo, phase: 0.75, decay: 5 do
sample :drum_snare_soft
end
sleep 1
end
live_loop :fifth do
# sync :main
sample :bd_gas, amp: 5, rate: rrand(0.9, 1.1)
sleep 0.5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment