Created
December 18, 2016 23:02
-
-
Save AlexandreRangel/c3d5e61aa76fd461137005e99c7a711c to your computer and use it in GitHub Desktop.
Sonic Pi music code
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
# the encounter v10 | |
# Alexandre rANGEL | |
# www.quasecinema.org | |
# 11-Dec-2016 | |
# Sonic Pi 2.11 | |
set_recording_bit_depth! 32 | |
set_sched_ahead_time! 4 | |
use_bpm 111 | |
#with_fx :echo, phase: 0.02, mix: 0.2 , reps: 4 do | |
live_loop :xx do | |
with_bpm 222 do | |
with_fx :pitch_shift, pitch: rrand(-8,-0.1), | |
window_size: [rrand(0.001,0.01),rrand(0.01,0.1)].choose, | |
mix: rrand(0.5,1) do | |
with_fx :slicer, phase: 1.0/12 do | |
with_fx :slicer, phase: 1.0/6 do | |
with_fx :slicer, phase: 1.0/3 do | |
use_synth :pluck | |
play scale(:e3,[:diminished,:diminished2].choose,num_scales:[1,2,3].choose).choose, | |
release: rrand(0.4,0.6) + 0.7, amp: rrand(1.0,1.3) | |
sleep 0.015 | |
play scale([:e1,:e2].choose,[:diminished,:diminished2].choose,num_scales:[1,2,3].choose).choose, | |
release: rrand(0.4,0.6) + 0.7, amp: rrand(1.0,1.3) | |
sleep 0.015 | |
play scale([:e1,:e2].choose,[:diminished,:diminished2].choose,num_scales:[1,2,3].choose).choose, | |
release: rrand(0.4,0.6) + 0.7, amp: rrand(1.0,1.3) | |
sleep 0.97 | |
sleep 1 if one_in(6) | |
end | |
end | |
end | |
end | |
end | |
end | |
sleep 8 | |
#with_fx :echo, phase: 1, decay: 4, mix: 0.5 do | |
live_loop :zzz do | |
with_fx :pitch_shift, pitch: rrand(-8,-0.1), | |
window_size: [rrand(0.001,0.01),rrand(0.01,0.1)].choose, | |
mix: rrand(0.5,1) do | |
with_fx :panslicer, wave: rand_i(3), | |
smooth: rand(0.5) do | |
with_fx :slicer, phase: [0.5,0.25,0.125].choose, mix: 0.7 do | |
with_fx :slicer, phase: [2,1,0.5].choose, mix: 0.7 do | |
with_bpm [11,22,44].choose do | |
use_synth :mod_pulse | |
play scale(:e3,[:diminished,:diminished2].choose,num_scales:[1,2,3].choose).choose, | |
release: rrand(0.4,0.6) + 0.7, | |
dividor: rand(16), depth: rand(16) | |
sleep 0.015 | |
play scale(:e1,[:diminished,:diminished2].choose,num_scales:[1,2,3].choose).choose, | |
release: rrand(0.4,0.6) + 0.7 | |
sleep 0.015 | |
play scale(:e0,[:diminished,:diminished2].choose,num_scales:[1,2,3].choose).choose, | |
release: rrand(0.4,0.6) + 0.7 | |
sleep 0.97 | |
end | |
end | |
end | |
end | |
end | |
sleep 1 if one_in(4) | |
end | |
#end | |
sleep 16 | |
with_fx :echo, phase: 0.25, mix: 0.3, decay: 2 do | |
live_loop :beat1 do | |
with_fx :bitcrusher, bits: rand(8), mix: 0.5 do | |
with_fx :bitcrusher, bits: rand(16), mix: 0.5 do | |
sample :bd_haus, amp: rrand(1.4,1.6) | |
sample :bd_tek, amp: 1.6 if spread(1,4).tick | |
end | |
end | |
sleep 1 | |
end | |
end | |
sleep 14 | |
live_loop :beat2 do | |
sample :elec_cymbal, finish: rrand(0.09,0.11), | |
amp: rrand(0.6,0.8) if spread(5,7).tick | |
sleep 1.0/4 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment