Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created March 8, 2020 04:28
Show Gist options
  • Save nicoder/be5dc806f001a32a33e76fe21fc4a76c to your computer and use it in GitHub Desktop.
Save nicoder/be5dc806f001a32a33e76fe21fc4a76c to your computer and use it in GitHub Desktop.
use_bpm 180
live_loop :a do
use_synth :fm
play (ring 48, 45, 43, 43).stretch(8).tick
sleep 1
end
live_loop :b do
sync :a
sleep 0.5
sample :bd_808, pan: -0.5, amp: 3 unless one_in 4
end
live_loop :c do
sync :a
sleep 0.67
sample :bd_ada, pan: -0.5 unless one_in 3
end
live_loop :d do
#sync :a
use_synth :dsaw
use_synth_defaults :cutoff, 40, :release, 1.2, :pan, 0.3
n1 = scale(60, :major, num_octaves: 2).choose
n2 = scale(60, :major, num_octaves: 2).choose
8.times do
play 60
play n1, pan: -1
play n2, pan: -1, amp: 0.2
play n1, pan: 1, amp: 0.2
play n2, pan: 1
play 72
sleep 1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment