Created
February 27, 2016 19:00
-
-
Save nicoder/81ffa18a7a7ab79433ae to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# one love | |
use_bpm 72 | |
chords = (ring 54, 54, 61, 61, 59, 54, 61, 54) | |
live_loop :cymbal do | |
with_fx :reverb, mix: 0.1 do | |
sample :drum_cymbal_closed, amp: rrand(0.9, 1.1) | |
end | |
sleep 0.5 | |
end | |
live_loop :bass do | |
sync :cymbal | |
use_synth :fm | |
with_fx :compressor, mix: 0.5 do | |
n = chords.tick() - 12 | |
n2 = [n + 7, n - 5].choose | |
play_pattern_timed [n, n, n2], [0.5, 1, 0.5], release: 0.6 | |
end | |
end | |
live_loop :chords do | |
sync :cymbal | |
with_fx :reverb, mix: 0.2 do | |
sleep 0.5 | |
c = chord chords.tick() | |
play_pattern_timed [c, c], [1, 0.5], release: 0.6 | |
end | |
end | |
live_loop :snare do | |
sync :cymbal | |
sleep 1.5 | |
with_fx :reverb, mix: 0.2 do | |
with_fx :echo, decay: 2, phase: (ring 0.5, 0.66, 0.75).tick(), mix: 0.4 do | |
sample :drum_snare_hard, amp: 0.4 unless one_in 4 | |
end | |
end | |
sleep 0.5 | |
end | |
live_loop :kick do | |
sync :cymbal | |
sleep 1.5 | |
with_fx :compressor, mix: 0.5 do | |
sample :drum_bass_soft, amp: 1 | |
end | |
sleep 0.5 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment