Created
June 25, 2018 18:34
-
-
Save briandunn/58279d53cc233fdd6c5d914031295f65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
live_loop :squiggle, sync: :drums do | |
#stop | |
s = synth :blade, note: :e, sustain: 1, slide: halves(0.5, 3).tick(:h), amp: 0.15 | |
4.times do | |
sleep halves(1, 5).tick | |
control s, note: degree(range(1,7).tick(:b), :c3, :major), | |
pan: rand(2) - 1, | |
amp: 0.3 | |
end | |
sleep vt.ceil - vt | |
end | |
live_loop :bass, sync: :drums do | |
#stop | |
use_synth :sine | |
play_pattern_timed [:c2, :e2, :f2, :b1], [3.5, 0.5, 3.5, 0.5], resonance: 0, sustain: 0, amp: 0.6 | |
end | |
live_loop :chords, sync: :drums do | |
#stop | |
sleep 3.5 | |
with_fx :slicer, phase: halves(1,3).tick(:p) do | |
play chord_degree(ring(4,1).tick, :c, :major, ring(2,3,4).tick(:c)), attack: 0.5, sustain: 1, amp: 0.3 | |
end | |
sleep 0.5 | |
end | |
live_loop :drums do | |
#stop | |
with_fx :reverb do | |
16.times do |i| | |
sample :bd_fat if [0, 6,7].include?(i) | |
sample ring(:elec_filt_snare, :elec_flip).tick if i == 4 | |
sample :elec_blip, amp: 0.25 if spread(5,16).tick | |
sleep 1/8.0 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment