Last active
November 2, 2017 19:19
-
-
Save mbutz/a0643dcde10efd080067cf8a79daed3c to your computer and use it in GitHub Desktop.
ARM - A live coding study in randomness and control with Sonic Pi
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
use_bpm 120 | |
use_synth :piano | |
use_synth_defaults attack: 0.0, release: 0.75, stereo_width: 1, vel: 0.15 | |
vol = (knit 0.75, 3, 0.125, 2, 0.25, 4, 0.35, 3).pick | |
vol_master = 10 | |
with_fx :reverb, room: 0.75, mix: 0.65 do | |
live_loop :bass do | |
bass_line = (chord :a1, :m7, num_octaves: 2) | |
#bass_line = (chord :c2, :add2, num_octaves: 2) | |
#bass_line = (chord :d2, '7sus4', num_octaves: 2) | |
if spread([2,4].choose,16).tick | |
play bass_line.look, amp: vol.look * vol_master | |
end | |
sleep 0.25 | |
end | |
live_loop :voice1 do | |
#stop | |
voice1_line = (chord :c4, :M, num_octaves: 1) | |
1.times do | |
if spread([2,4].choose,16).tick | |
play voice1_line.look, amp: vol.look * vol_master | |
end | |
sleep 0.25 | |
end | |
end | |
live_loop :voice2 do | |
#stop | |
voice2_line = (chord :d4, :M, num_octaves: 1) | |
1.times do | |
if spread([2,4].choose,16).tick | |
play voice2_line.look, amp: vol.look * vol_master | |
end | |
sleep 0.25 | |
end | |
end | |
end #reverb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment