Created
July 10, 2019 22:01
-
-
Save findscode/2fae68ba403a29d6b1c1590f2048c571 to your computer and use it in GitHub Desktop.
My Drum&Bass template
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
samps = "C:/Program Files (x86)/Sonic Pi/etc/my-samples" | |
use_bpm 170 | |
live_loop :metro do | |
sleep 1 | |
cue :beat | |
sleep 7 | |
cue :ambient | |
end | |
live_loop :ambi, sync: :ambient do | |
with_fx :reverb, room: 0.1 do | |
sample samps, 0, attack: 8, amp: 0.1 | |
sleep 25 | |
end | |
end | |
with_fx :reverb, mix: 0.7 do | |
use_synth :hollow | |
live_loop :note1 do | |
play choose([:D5, :E5]), attack: 6, release: 6, amp: 0.5 | |
sleep 8 | |
end | |
end | |
live_loop :hihat, sync: :beat do | |
# stop | |
with_fx :sound_out_stereo, output: 10 do | |
sample :drum_splash_soft, attack: 0.02, sustain: 0.01, release: 0.03 | |
sleep 0.5 | |
2.times do | |
sample :drum_splash_soft, attack: 0.02, sustain: 0.01, release: 0.03 | |
sleep 2 | |
end | |
sample :drum_splash_soft, attack: 0.02, sustain: 0.01, release: 0.03 | |
sleep 0.5 | |
end | |
end | |
live_loop :amen, sync: :beat do | |
with_bpm 170 do | |
amen = :loop_amen | |
sample amen, amp: 0.3, rate: 1.25 | |
sleep (sample_duration amen, amp: 0.3, rate: 1.2419) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment