Skip to content

Instantly share code, notes, and snippets.

@kniknoo
Last active June 21, 2017 02:37
Show Gist options
  • Save kniknoo/63db4fd43aa06db977ba6db2c60aad10 to your computer and use it in GitHub Desktop.
Save kniknoo/63db4fd43aa06db977ba6db2c60aad10 to your computer and use it in GitHub Desktop.
use_bpm 70
with_fx :compressor, pre_amp: 1.2, threshold: 0.4, slope_above: 0.75, slope_below: 1, amp: 0.9 do
live_loop :kicks do
sleep 1
loop do
sample :bd_klub
sleep 2.5
sample :bd_klub
sleep 1.5
sample :bd_klub
sleep 0.5
sample :bd_klub
sleep 1.5
sample :bd_ada
sleep 1
sample :bd_ada
sleep 1
end
end
with_fx :bitcrusher, sample_rate: 12000, bits: 16 do
live_loop :snare do
sleep 1
loop do
with_fx :gverb, mix: 0.2, release: 2, tail_level: 0.3, room: 7 do
3.times do
sleep 1
sample :sn_dolf, rate: rrand(0.7, 0.75), amp: 0.8
sleep 1
end
2.times do
sleep 0.5
sample :sn_dolf, rate: rrand(0.65, 0.75), amp: 0.8
sleep 0.5
end
end
end
end
with_fx :echo, phase: 0.5, decay: 1, mix: 0.3 do
live_loop :hats do
sample :drum_cymbal_closed, release: rrand(0.03, 0.3), sustain: 0, rate: rrand(0.8, 1)
sleep [0.25, 0.5, 1].choose
end
end
live_loop :blip do
with_fx :flanger, phase: 5, feedback: 0.1, stereo_invert_wave: 1 do
with_fx :echo, phase: 0.125, mix: 0.3, decay: 0.5 do
sleep 0.5
sample :elec_tick, amp: 0.5, rate: rrand(1.1, 1.4) if one_in(3)
end
end
end
end
end
with_fx :reverb, room: 0.9, damp: 0.6, mix: 0.6 do
live_loop :guitar do
use_synth :pluck
use_synth_defaults release: 4, coef: 0.4, mix: 0.7, pan: 0.3
notes = [:d3, :e3, :f3, :f3, :e3, :f3, :d3, :b2, :c3, :d3, :e3, :c3, :d3]
times = [0.5, 0.5, 1.5, 0.5, 1, 1, 2, 1, 1, 2, 1, 1, 3]
play_pattern_timed notes, times
end
with_fx :flanger, phase: 2 do
live_loop :bell do
use_synth :dtri
use_synth_defaults decay: 0.75, release: 1, amp: 0.3, env_curve: 4, sustain_level: 0.3, pan: -0.3, cutoff: 90
notes = [:d5, :e5, :f5, :f5, :e5, :f5, :e5, :d5, :b4, :c5, :d5, :e5, :c5, :d5]
times = [0.5, 0.5, 1.5, 0.5, 1, 0.5, 0.5, 2, 1, 1, 2, 1, 1, 3]
play_pattern_timed notes, times
end
end
live_loop :strings do
#start/stop bassline
cue :bassline
with_fx :flanger, phase: rrand(5, 10), stereo_invert_wave: 1 do
use_synth :blade
use_synth_defaults release: 2.5, cutoff: 120, res: 0.7, amp: 0.8, attack: 0.25,
vibrato_rate: rrand(0.05, 1), vibrato_depth: 0.1, vibrato_delay: 0.25, env_curve: 4
sleep 1
play chord_invert((chord, :d4, :minor), -1)
sleep 2
play chord_invert((chord, :c4, :major), -1), release: 1.5
sleep 1
play chord_invert((chord, :c4, :major), rrand_i(-2, 2)), release: 1.5, amp: 0.5
sleep 1
play chord_invert((chord, :g3, :major), -1), release: 4.5
sleep 4
play chord_invert((chord, :d3, :minor), 1)
sleep 2
play chord_invert((chord, :f3, :major), 0), release: 1.5
sleep 1
play chord_invert((chord, :f3, :major), rrand_i(-1,3)), release: 1.5, amp: 0.5
sleep 1
play chord_invert((chord, :g3, :major), 0), release: 4.5
sleep 3
end
end
live_loop :bass do
use_synth :tb303
use_synth_defaults release: 0.25, amp: 0.5
sync :bassline
with_fx :echo, phase: 0.5, decay: 2, mix: 0.4 do
sleep 2
4.times do
play [:f2, :a2, :c3, :f3].choose + [0, 12].choose, cutoff: rrand(60, 120), res: rrand(0.8, 0.9)
sleep 0.25
end
sleep 1
4.times do
play [:c2, :e2, :g2, :c3].choose + [0, 12].choose, cutoff: rrand(60, 120), res: rrand(0.8, 0.9)
sleep 0.25
end
sleep 1
4.times do
play [:d2, :a2, :d3, :a2].choose + [0, 12].choose, cutoff: rrand(60, 120), res: rrand(0.8, 0.9)
sleep 0.25
end
sleep 3
4.times do
play [:d2, :f2, :a2, :d3].choose + [0, 12].choose, cutoff: rrand(60, 120), res: rrand(0.8, 0.9)
sleep 0.25
end
sleep 1
4.times do
play [:c2, :e2, :g2, :c3].choose + [0, 12].choose, cutoff: rrand(60, 120), res: rrand(0.8, 0.9)
sleep 0.25
end
sleep 1
4.times do
play [:g2, :d3, :g3, :d4].choose + [0, 12].choose, cutoff: rrand(60, 120), res: rrand(0.8, 0.9)
sleep 0.25
end
sleep 1
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment