Skip to content

Instantly share code, notes, and snippets.

@hopbit
Forked from pjagielski/count-on-me.rb
Last active January 10, 2023 21:44
Show Gist options
  • Save hopbit/a831d3c19e47cdcc0d66b84a70cab3cd to your computer and use it in GitHub Desktop.
Save hopbit/a831d3c19e47cdcc0d66b84a70cab3cd to your computer and use it in GitHub Desktop.
Count on me supersaw
# :saws live loop written by @pjagielski,
# but I couldn't hold back to play with it!
# soundcloud: https://soundcloud.com/hopbit/live-coding-session-2016-05-14-count-on-me
use_bpm 130
set_volume! 1
ch1 = [62,65,69]
ch2 = [63,67,70]
ch3 = [65,69,72]
ch4 = [67,70,74]
live_loop :saws do
use_synth :supersaw
##| with_fx :wobble, phase: 0.75 do
with_synth_defaults sustain_level: 0.75, release: 1.25, cutoff: 130, amp: 1.5 do
play_pattern_timed [ch1, ch1, ch2, ch2, ch2, ch2, ch2, ch3, ch3, ch4, ch4],
[1, 0.75, 0.75, 1, 0.5, 1, 0.75, 0.75, 0.5, 0.5, 0.5]
end
##| end
end
live_loop :beats do
stop
sync :saws
stretch_val = 4
##| with_fx :ixi_techno, phase: 0.25, mix: 0.35 do
2.times do
sample :loop_amen, beat_stretch: stretch_val
sleep stretch_val
end
##| end
end
notes = ch1 + ch2 + ch3 + ch4
live_loop :background do
stop
sync :saws
use_synth :chiplead
with_fx :echo, phase: 0.25 do
32.times do
play notes.choose, release: 0.125, amp: 0.35, cutoff: 70
sleep 0.25
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment