Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created March 25, 2020 04:31
Show Gist options
  • Save nicoder/01202e1340436983b2c3d459792f4e76 to your computer and use it in GitHub Desktop.
Save nicoder/01202e1340436983b2c3d459792f4e76 to your computer and use it in GitHub Desktop.
live_loop :a do
with_fx :echo, mix: (knit 1, 3, 0, 1).tick do
sample :elec_plip
end
sleep 1
end
live_loop :b do
sync :a
use_synth :mod_pulse
play 48, cutoff: line(60, 90, steps: 8).tick
end
live_loop :c do
sync :a
use_synth :pulse
play (ring 67, 65).stretch(8).tick, release: 1.2, cutoff: line(60, 90, steps: 8).look
end
live_loop :d do
sync :a
use_synth :pulse
note = scale(60, :major, num_octaves: 2).choose
(4 * rrand_i(1, 8) - 1).times do
sleep 0.25
play note, cutoff: 80
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment