Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created March 7, 2020 06:21
Show Gist options
  • Save nicoder/c11b2af958e00dd8ab18de257a1c4342 to your computer and use it in GitHub Desktop.
Save nicoder/c11b2af958e00dd8ab18de257a1c4342 to your computer and use it in GitHub Desktop.
live_audio :in, amp: 3
live_loop :a do
sample :elec_blip
sleep 1
end
live_loop :b do
sync :a
s = ring(:glitch_perc1, :glitch_perc2, :glitch_perc3, :glitch_perc4, :glitch_perc5).tick
3.times do
sleep 0.5
sample s, amp: 0.7
end
end
live_loop :c do
sync :a
use_synth :dsaw
use_synth_defaults :cutoff, 30
rrand_i(1, 5).times do
play scale(:a, :major).tick, release: 0.1, amp: 3
sleep 0.1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment