Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created March 24, 2020 04:46
Show Gist options
  • Save nicoder/aa482aed797fc7fa1af8647ecdfe123d to your computer and use it in GitHub Desktop.
Save nicoder/aa482aed797fc7fa1af8647ecdfe123d to your computer and use it in GitHub Desktop.
use_bpm 180
live_loop :a do
sample :tabla_dhec
sleep 1
end
live_loop :c do
sync :a
sleep 0.5
with_fx :echo, decay: 0.5, mix: (ring 0, 1).tick do
sample :tabla_dhec, rate: 1.2
end
end
live_loop :d do
sync :a
use_synth :fm
play scale(48, :major_pentatonic).tick, release: 0.3 unless one_in 9
end
notes = scale(60, :major).shuffle.stretch(6)
live_loop :e do
sync :a
use_synth :piano
sleep 0.5
with_fx :level, amp: rrand(0.3, 0.6) do
play 60 unless one_in 6
play notes.tick unless one_in 7
play 69 unless one_in 9
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment