Skip to content

Instantly share code, notes, and snippets.

@brycec
Created February 3, 2022 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brycec/62d5c0ada3a602c883ac524df450d18a to your computer and use it in GitHub Desktop.
Save brycec/62d5c0ada3a602c883ac524df450d18a to your computer and use it in GitHub Desktop.
#beats
use_bpm 70
use_random_seed 613
rhy = (ring 1, 1.5, 0.5, 1)
chr = (scale :e2, :chinese).pick 4
live_loop :kik do
sample :bd_808, amp: 1.99
sleep rhy.tick
end
live_loop :flik do
sleep 1
sample :elec_snare, amp: 0.6, beat_stretch: 0.17
sleep 1
end
live_loop :flikk do
sleep 2.25
sample :elec_snare, amp: 0.4, beat_stretch: 0.15
sleep 1.75
end
live_loop :fliks do
sleep 15
3.times do
sleep 0.25
sample :elec_snare, amp: 0.6, beat_stretch: 0.17
end
sleep 0.25
end
with_fx :slicer, invert_wave: 1, smooth_up: 1, smooth_down: 0.01, phase: 2, pulse_width: 0.05 do |s|
live_loop :s_ctrl do
r = rhy.tick
control s, phase: r
sleep r
end
live_loop :tik do
sample :elec_cymbal, amp: 0.3, beat_stretch: 0.13
sleep 0.5
end
live_loop :splash do
sleep 16
sample :drum_splash_hard, amp: 0.2, beat_stretch: 6
end
live_loop :geet do
stop
scl = chr.tick
use_synth :tri
with_fx :wobble, res: 0.4, wave: 2, phase: 0.25, cutoff_min: 10, phase_offset: 0.6 do |w|
n = play scl-36, sustain: 3, note_slide: 2
control n, note: scl-12
end
use_synth :blade
n = play_chord (chord scl, :major, num_octaves: 3), amp: 1, sustain: 2, attack: 1,
vibrato_rate: 1.25, vibrato_depth: 0.33
sleep 4
end
live_loop :leeg do
#sleep 16
with_fx :gverb, room: 92, release: 6, mix: 0.5 do
4.times do
scl = chr.tick
8.times do
use_synth :fm
n = play note: scl+36, amp: rand_i(2)/8.0, sustain: 0, release: rand(0.8), note_slide: 0.04
control n, note: (scale scl+48, :major_pentatonic).pick
sleep 0.5
control n, note: scl+36
end
end
end
end
live_loop :rain do
scl = chr.tick
with_fx :wobble, res: 0.7, phase: 0.75, cutoff_max: 75, cutoff_min: 50, mix: 0.8, amp: 0.8 do
use_synth :pretty_bell
4.times do
sleep 0.06
play scl+31, amp: 0.2, sustain: 0, decay: 0
sleep 0.25
play scl+28, amp: 0.3, sustain: 0, decay: 0
sleep 0.25
play scl+24, amp: 0.1, sustain: 0, decay: 0
sleep 0.44
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment