Created
June 2, 2016 10:33
-
-
Save AlexandreRangel/9da03b3a08c57c87d8caa27a623f47fc 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
# Sonic Pi 2.10 | |
use_synth :dsaw | |
live_loop :serra1 do | |
play chord(:d2, :m7).choose, | |
detune: rrand_i(-16,-8), detune_slide: [1,2,4,8].choose, | |
amp: 0.9, attack: 2, sustain: 2, release: [3.5].choose | |
sleep 4 | |
end | |
live_loop :serra2 do | |
play chord([:d4,:d5].choose, :major).choose, | |
cutoff: rrand(90,120), cutoff_slide: [0.1,0.2,0.25,0.5].choose, | |
detune: rrand_i(4,8), detune_slide: [0.01,0.02,0.03].choose, | |
amp: 0.333, attack: 0.01, sustain: 0.08, release: 0.02 | |
sleep 0.2 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment