Created
May 21, 2017 21:16
-
-
Save xavriley/6664f108e17ddb8f3148907d3f9d6338 to your computer and use it in GitHub Desktop.
with_harmony sketch for Sonic Pi
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
s = scale(:c5, :blues_major, num_octaves: 1) | |
live_loop :foo do | |
n = s.choose | |
c = Array(s.index(n)).flat_map {|x| | |
[x-6, x-4, x-2, x] | |
} | |
play s.values_at(*c), release: 0.1 | |
sleep 0.25 | |
end | |
puts note(:'c-1') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment