-
-
Save beyoung/eebc265f2ca9fa3b7c8c452e5e8a6b81 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
use_bpm 100 | |
live_loop :pad do | |
chords = [ | |
[:a2, :g3, :c4, :e4], | |
[:d2, :f3, :c4, :e4], | |
[:g2, :f3, :a3, :d4], | |
[:c2, :g3, :d4, :e4] | |
] | |
use_synth :dsaw | |
with_fx :lpf, cutoff: 70 do | |
with_fx :reverb, room: 0.5, mix: 0.8 do | |
chords.each do |chord| | |
play chord, attack_level: 0.3, decay: 4, release: 0, amp: 4 | |
sleep 4 | |
end | |
end | |
end | |
end | |
live_loop :bass do | |
use_synth :tri | |
with_fx :lpf, cutoff: 60 do | |
([:a2, :d2, :g2, :c2]).each do |note| | |
play note, release: 2, amp: 4 | |
sleep 3.5 | |
play note, release: 0.5, amp: 2 | |
sleep 0.5 | |
end | |
end | |
end | |
live_loop :hihat do | |
7.times do | |
sample :drum_cymbal_closed, amp: 0.2 | |
sleep 0.5 | |
end | |
8.times do | |
sample :drum_cymbal_closed, amp: 0.2 | |
sleep 0.0625 | |
end | |
end | |
live_loop :kick do | |
sample :bd_tek, amp: 8 | |
sample :bd_haus, amp: 8 | |
sample :drum_bass_hard | |
sleep 1.5 | |
sample :bd_haus, amp: 2 | |
sleep 2 | |
sample :bd_haus, amp: 2 | |
sleep 0.5 | |
end | |
live_loop :snare do | |
sleep 1 | |
with_fx :reverb, room: 1 do | |
with_fx :hpf, cutoff: 50 do | |
sample :drum_snare_soft, amp: 2 | |
end | |
end | |
sleep 2 | |
sample :drum_snare_soft, amp: 2 | |
sleep 1 | |
end | |
live_loop :melody do | |
use_synth :piano | |
with_fx :reverb, room: 0.2, mix: 0.5 do | |
with_fx :echo, mix: 0.1 do | |
4.times do |i| | |
play_pattern_timed [:a4, :b4, :c5, :e5], 0.25, decay: 0.8, amp: 0.4 | |
end | |
4.times do |i| | |
play_pattern_timed [:f4, :a4, :c5, :e5], 0.25, decay: 0.8, amp: 0.4 | |
end | |
4.times do |i| | |
play_pattern_timed [:f4, :a4, :b4, :d5], 0.25, decay: 0.8, amp: 0.4 | |
end | |
4.times do |i| | |
play_pattern_timed [:e4, :g4, :b4, :e5], 0.25, decay: 0.8, amp: 0.4 | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment