Created
September 30, 2014 20:33
-
-
Save danwrong/e764dac315c3900b4c32 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
# Welcome to Sonic Pi v2.0 | |
use_bpm 140 | |
in_thread do | |
loop do | |
4.times do | |
3.times do | |
sample :ambi_choir, amp: 0.8 | |
sleep 2 | |
end | |
sample :ambi_choir, amp: 0.8, rate: 1.125 | |
sleep 2 | |
end | |
sleep 32 | |
end | |
end | |
in_thread do | |
i = 0 | |
loop do | |
if i % 2 == 0 then | |
sample :drum_heavy_kick | |
sleep 4 | |
else | |
sleep 1 | |
sample :drum_heavy_kick | |
sleep 3 | |
sample :drum_heavy_kick | |
end | |
i += 1 | |
end | |
end | |
in_thread do | |
sleep 2 | |
loop do | |
with_fx :reverb, mix: 0.3, amp: 1.5, room: 0.9 do | |
sample :drum_snare_hard | |
end | |
sleep 4 | |
end | |
end | |
in_thread do | |
loop do | |
8.times do | |
sample :drum_cymbal_pedal, rate: 4 | |
sleep 0.25 | |
end | |
sleep 2 | |
end | |
end | |
in_thread do | |
loop do | |
sleep 28 | |
16.times do | |
if dice(6) > 3 | |
sample :drum_snare_hard, amp: rrand(0.3, 0.4), rate: rrand(1.2,1.4) | |
end | |
sleep 0.25 | |
end | |
end | |
end | |
sleep 32 | |
in_thread do | |
loop do | |
with_fx :echo, phase: 0.75, decay: 8 do | |
sample :drum_splash_hard, amp: 0.5 | |
end | |
sleep 32 | |
end | |
end | |
in_thread do | |
loop do | |
sample :drum_cymbal_closed | |
sleep 1 | |
end | |
end | |
j = 0 | |
loop do | |
if j % 4 == 1 | |
sample :ambi_lunar_land, amp: 0.5 | |
end | |
with_fx :reverb, mix: 0.2 do | |
with_fx :distortion, distort: 0.99, amp: 0.8 do | |
use_synth :fm | |
play_pattern_timed scale(:f2, :minor), 0.25, release: 0.2, divisor: rrand(0,2), depth: rrand(0,2) | |
s = if j % 4 != 3 | |
scale(:f1, :minor) | |
else | |
scale(:f2, :minor).reverse | |
end | |
use_synth :tb303 | |
play_pattern_timed s, 0.25, release: 0.2, cutoff: rrand(50,130), cutoff_glide: 1 | |
end | |
end | |
j += 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment