Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created March 12, 2016 00:15
Show Gist options
  • Save nicoder/becbe75076c34b1359f7 to your computer and use it in GitHub Desktop.
Save nicoder/becbe75076c34b1359f7 to your computer and use it in GitHub Desktop.
# end state of a short live coding session after the first day of the wroc_love.rb conference
live_loop :beat do
2.times do
sample :drum_bass_hard, pan: [-1, 1].choose
sample :drum_bass_hard
sleep 0.25
end
with_fx :echo, phase: 0.3 do
sample :perc_snap2
sleep 0.5
end
end
live_loop :mel do
# sync :beat
with_fx :echo, phase: 0.5 do
play scale(60, :major).choose, release: 2
play 67, release: 2
play 76, release: 2
end
sleep 2
end
live_loop :mel2 do
# sync :mel
with_fx :reverb, mix: 0.1 do
play (ring 86, 84, 83, 84).tick(), release: 1.5
sleep 2
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment