Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created February 26, 2019 19:47
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/ba0d7d7f6ea75f164c1c28560d2ff38a to your computer and use it in GitHub Desktop.
Save nicoder/ba0d7d7f6ea75f164c1c28560d2ff38a to your computer and use it in GitHub Desktop.
with_fx :echo do
live_audio :in, amp: 2
end
live_loop :a do
sample :drum_bass_soft
sleep 0.5
end
live_loop :b do
sync :a
sleep (ring 0.2, 0.25, 0.4).tick
sample :drum_snare_soft
end
live_loop :c do
sync :a
with_fx :echo, phase: 0.33 do
sample :drum_cymbal_closed
end
end
live_loop :d do
sync :a
with_fx :reverb do
sample [:drum_cymbal_hard, :drum_cymbal_open].choose, pan: rrand(-1, 1) if one_in 4
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment