Created
July 28, 2016 01:44
-
-
Save AlexandreRangel/52e446d52a6d0c6e962ce95ef1db7c21 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
# Alexandre rANGEL 'syncing, singing' v04 | |
use_bpm 122; set_volume! 1.111 | |
with_fx :compressor, slope_above: 0.8, slope_below: 1.1 do | |
live_loop :notasA1 do | |
use_random_seed (Time.new.min * Time.new.sec) | |
use_synth :chipbass | |
with_fx :echo,phase: [0.5,1,2,3,4].choose do | |
play scale(:c2, :spanish).choose, pan: -0.4, | |
amp: 0.5, attack: 0.1 | |
end | |
sleep 1; sleep 4 if one_in(5) | |
end | |
sleep 2 | |
live_loop :notasA2 do | |
with_bpm 122 / 32.0 do | |
use_random_seed (Time.new.min * Time.new.sec) | |
use_synth :dark_ambience | |
with_fx :echo, phase: [0.5,1,2,3,4].choose, | |
phase_slide: rand([0.1,0.25,1].choose) do | |
play scale(:c3, :spanish).choose, amp: 7 | |
play scale(:c2, :spanish).choose, amp: 2, | |
attack: 4, sustain: 4, release: 2, | |
pan: [-0.8,0.8].choose | |
end | |
sleep 4 | |
end | |
end | |
sleep 2 | |
live_loop :notasB1 do | |
use_random_seed (Time.new.min * Time.new.hour) | |
use_synth :prophet | |
with_fx :echo, phase: [(1.0/3)*2].choose, mix: 0.3 do | |
play scale(:c2, :chinese).choose, | |
pan: [0.5,0.5].choose, pan_slide: 0.25, amp: 0.4 | |
end | |
sleep 1; sleep 4 if one_in(6) | |
end | |
sleep 2 | |
live_loop :notasB2 do | |
with_bpm 122 / 32.0 do | |
use_random_seed (Time.new.min * Time.new.hour) | |
use_synth :fm | |
with_fx :vowel, voice: rrand_i(0,4), | |
vowel_sound: rrand_i(1,5),mix: rrand(0.5,1) do | |
with_fx :echo, phase: (1.0/3)*2, mix: 0.3 do | |
play scale(:c2, :chinese).choose, amp: 0.5, | |
divisor: [4,8,16].choose, attack: [1.5,2].choose, | |
pan: [0.4,0.4].choose, pan_slide: 0.25 | |
end | |
end | |
sleep [1,1,3,3,6].choose | |
end | |
end | |
end #compressor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment