Last active
December 11, 2016 23:24
-
-
Save AlexandreRangel/097a94a6771ddc7ee0044d205b5714ef to your computer and use it in GitHub Desktop.
Sonic Pi music code
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
# 12 hours of into the night time v17 | |
# Alexandre rANGEL | |
# www.quasecinema.org | |
# 11-Dec-2016 | |
# Sonic Pi 2.11 | |
use_bpm 12 #24 | |
#set_recording_bit_depth! 32 | |
set_sched_ahead_time! 16 | |
set_volume! 0.8 | |
with_fx :mono, mix: 0.333 do | |
with_fx :compressor, mix: 0.5 do | |
with_fx :compressor do | |
live_loop :xyz do | |
with_bpm 12 do | |
with_fx :echo, phase: [0.01,1,2].choose, mix: 0.5, | |
decay: 2 do | |
with_fx :pitch_shift, | |
pitch: -16, | |
pitch_dis: rand(0.1), | |
window_size: rrand(0.0001,0.11), | |
pitch_slide: [0.25,0.5,1,2,4,8].choose, | |
mix: 0.5 do | |
([1,2,3,4].choose).times do | |
x = tick | |
use_synth [:fm,:mod_fm,:dtri,:pluck].choose | |
with_fx :flanger, mix: rand(1), | |
phase: [2,4,8,16,32].choose do | |
with_fx :vowel, | |
voice: [0,0,0,1,2,3].choose, | |
vowel: [1,2,3,4,5].choose, | |
vowel_slide: [1,2,4].choose, | |
mix: 0.7 do | |
with_fx :bitcrusher, | |
sample_rate: rrand(4000,44000), | |
mix: rand(1) do | |
with_fx :pitch_shift, | |
pitch: rrand(-1,1), | |
pitch_dis: rand(0.1), | |
window_size: rrand(0.0001,0.11) do | |
with_fx :flanger, mix: rand(1), | |
phase: rrand(0.01,0.2), | |
mix: rand(1) do | |
play scale([:c0,:g0].choose,:minor,num_octaves: 2).choose, | |
attack: [4,6,8,12,16].choose, | |
release: [4,6,8,12,16].choose, | |
pan: (ring -1,1)[x], | |
amp: rrand(1.6,1.9), | |
amp_slide: 2, | |
divisor: [1,2,4,8,9,12,16].choose, | |
depth: rand(8) | |
end | |
end | |
end | |
end | |
end | |
sleep [1,2,4,4,4,6,6,6,6,8,8].choose | |
end | |
end | |
end #bpm | |
end #live_loop | |
end | |
end | |
end | |
end | |
live_loop :cem do | |
with_bpm 60 do | |
with_fx :slicer do | |
with_fx :bitcrusher, | |
sample_rate: rrand(1000,44000), | |
mix: 0.5 do | |
use_synth [:mod_fm,:fm].choose | |
play scale(:c2,:blues_minor).choose, | |
attack: 2, release: 2, | |
divisor: rand(4), depth: rand(4), | |
amp: rrand(1.4,2.2) | |
end | |
end | |
sleep 2 | |
end | |
end | |
live_loop :bateria1 do | |
with_bpm 60 do | |
sample :bd_haus if spread(1,4).tick | |
sample :bd_fat, amp: 4 if spread(1,2).look | |
sleep 0.5 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment