Skip to content

Instantly share code, notes, and snippets.

@nicoder
Last active February 28, 2020 02:07
Show Gist options
  • Save nicoder/7ad64b3b6b0b9cab469b866d929af2a9 to your computer and use it in GitHub Desktop.
Save nicoder/7ad64b3b6b0b9cab469b866d929af2a9 to your computer and use it in GitHub Desktop.
use_bpm 180
use_synth :dsaw
live_loop :a do
sample :bd_808, amp: 2
sleep 1
end
live_loop :b do
sync :a
sleep 0.5 if one_in 2
c = line(20, 60, steps: 8).tick
play 60, release: 1.5, cutoff: c
play scale(60 - 12, :major, num_scales: 2).choose, release: 1.5, cutoff: c, pan: -0.2 unless one_in 3
end
live_loop :c do
sync :a
use_synth :fm
with_swing -0.5 do
play 60 - 12 - ring(0, 3).stretch(8).tick, release: 0.5, pan: -0.2
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment