Skip to content

Instantly share code, notes, and snippets.

@kniknoo
Last active January 12, 2017 18:32
Show Gist options
  • Save kniknoo/3195b7ab8a7fd8aaaaf6acd8d0426e2d to your computer and use it in GitHub Desktop.
Save kniknoo/3195b7ab8a7fd8aaaaf6acd8d0426e2d to your computer and use it in GitHub Desktop.
Review for Rainbow Class
#Comment what each of the sections do
#Don't forget you can press Ctrl - i to see the help for a command you have forgotten
#
use_bpm 55
#
with_fx :flanger do
#
live_loop :kick do
sample :bd_ada, sustain: 0.25
sleep 0.5
end
#
live_loop :snare do
sleep 0.5
sample :sn_dolf, sustain: 0.125
sleep 0.5
end
#
live_loop :hi_hats do
sample :drum_cymbal_closed, sustain: 0, release: 0.01 if one_in(2)
sleep 0.25
sample :drum_cymbal_closed, sustain: 0, release: 0.05
sleep 0.25
end
end
#
with_fx :echo, phase: 0.125, decay: 0.25, mix: 0.3 do
#
live_loop :synco do
use_synth :prophet
use_synth_defaults release: 0.125, cutoff: rrand_i(80, 110), res: 0.8
sleep 0.25
if one_in(3)
play :fs3
else
play :b3
end
sleep 0.25
end
#
live_loop :keys do
use_synth :dpulse
play [:d4, :ds4].choose, release: 0.125, pulse_width: 0.25
sleep [0.25, 0.5].choose
end
end
#
with_fx :reverb, room: 0.85, mix: 0.8 do
#
live_loop :string do
use_synth :mod_dsaw
use_synth_defaults release: 5, amp: 0.3, attack: 0.5, cutoff: rrand(100, 110), res: rrand(0.8, 0.9), detune: 0.1, mod_range: 0.5, mod_wave: 2, mod_phase: 0.125
play :fs2
sleep 4
play :b2
sleep 4
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment