Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created March 13, 2015 14:00
Show Gist options
  • Save nicoder/3654226f3f8555d270e1 to your computer and use it in GitHub Desktop.
Save nicoder/3654226f3f8555d270e1 to your computer and use it in GitHub Desktop.
20150313_sonic_pi.rb
live_loop :l do
use_synth :sine
with_fx :wobble, phase_offset: 0.66, wave: 1 do
play 60
with_fx :echo, phase: 0.125, decay: 0.5 do
play 67, attack: 0.2
play 60, attack: 0.2
end
end
sleep 1
end
live_loop :l2 do
# sync :l
use_synth :tb303
l = [2, 4, 8].choose
play 63, attack: 0.5, release: l, amp: 0.5
play [67, 65, 69].choose, attack: 0.5, release: l, amp: 0.5
sleep l
end
live_loop :b do
# sync :l
use_synth :fm
play 48, release: 0.2, amp: 3
sleep 0.5
end
live_loop :k do
# sync :l
sample :bd_haus
sleep 0.5
end
live_loop :c do
# sync :l
sample :drum_cymbal_closed, rate: rrand(1.2, 1.5) unless one_in 15
sleep 0.125
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment