Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created February 28, 2019 22:55
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/02d434dc9a3f7fcc89e8a240ca42150a to your computer and use it in GitHub Desktop.
Save nicoder/02d434dc9a3f7fcc89e8a240ca42150a to your computer and use it in GitHub Desktop.
with_fx :echo do
live_audio :in
end
live_loop :a do
sample :tabla_ke1
sleep 0.5
end
live_loop :b do
sync :a
sleep 0.25
s = :tabla_ke2
sample (ring s, s, nil, nil).tick
end
live_loop :c do
sync :a
sleep [0.3, 0.4].choose
s = :tabla_ke3
with_fx :echo, phase: 0.2, mix: rrand(0, 0.3) do
sample (ring s, nil, s, nil).tick
end
end
live_loop :d do
sync :a
use_synth :fm
2.times do
play scale(36, :major_pentatonic).choose, release: 0.2 unless one_in 3
sleep 0.16
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment