Skip to content

Instantly share code, notes, and snippets.

@sinewalker
Created November 2, 2018 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinewalker/1c8dcadfdf3df3f56a8c96bcd8b953ae to your computer and use it in GitHub Desktop.
Save sinewalker/1c8dcadfdf3df3f56a8c96bcd8b953ae to your computer and use it in GitHub Desktop.
Chord Inversions over known scales
# Chord Inversions
# Coded by Adrian Cheater
# (in a single tweet)
# https://twitter.com/wpgFactoid/status/666692596605976576
# Mike Lockhart made a small mod to loop through all of Sonic Pi's built-in scales
# (73 of them for SP v3.1 !)
live_loop :scaler do
puts "###########################################"
scale_names.each do |s|
puts s
[1, 3, 6, 4].each do |d|
(range -3, 3).each do |i|
play_chord (chord_degree d, :c, s, 3, invert: i)
sleep 0.25
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment