Skip to content

Instantly share code, notes, and snippets.

@Enkerli
Last active March 19, 2016 19:14
Show Gist options
  • Save Enkerli/ed650266e5eb116adbb5 to your computer and use it in GitHub Desktop.
Save Enkerli/ed650266e5eb116adbb5 to your computer and use it in GitHub Desktop.
Sonic Pi: having fun with note rings in minor pentatonic, used as licks. The little graphs created by the spark function help understand those licks.
def play_lick(lick,root, scale, time)
spark lick
lick.each{|note| play((degree note, root, scale)) ; sleep time }
end
lix=(ring
[1, 9, 4, 9, 2, 9, 3, 9, 5, 9, 6, 9],
# ▄▁▆▁▅▁▅▁▆▁▇▁
[1, 4, 9, 9, 2, 9, 3, 5, 9, 9, 6, 9],
# ▄▆▁▁▅▁▅▆▁▁▇▁
[1, 9, 4, 2, 9, 9, 3, 9, 5, 6, 9],
# ▄▁▆▅▁▁▅▁▆▇▁
[1, 9, 4, 9, 2, 3, 9, 5, 9, 6, 9],
# ▄▁▆▁▅▅▁▆▁▇▁
[1, 4, 2, 3, 5, 6],
# ▁▅▃▄▆▇
[1, 9, 4, 2, 9],
# ▅▁▇▆▁
[1, 9, 9, 2, 9, 9, 9, 9],
# ▆▁▁▇▁▁▁▁
[1, 9, 5, 4, 2, 9, 1, 9, 9],
# ▄▁▇▆▅▁▄▁▁
[4, 5, 2, 9, 9, 1, 9, 9],
# ▆▇▅▁▁▄▁▁
[1, 9, 4, 9, 9, 2, 5, 2, 9, 9, 9],
# ▄▁▆▁▁▅▇▅▁▁▁
[1, 9, 2, 4, 9],
# ▅▁▆▇▁
[1, 9, 9, 2, 9, 9, 9, 9],
# ▆▁▁▇▁▁▁▁
[1, 9, 5, 4, 2, 9, 1, 9, 9],
# ▄▁▇▆▅▁▄▁▁
[1, 9, 4, 2, 5, 3, 9, 9, 9],
# ▄▁▆▅▇▆▁▁▁
[1, 2, 4,9],
# ▅▆▇▁
[1, 9, 2, 9, 9, 5, 4, 6, 9, 9, 9],
# ▄▁▅▁▁▆▆▇▁▁▁
[4, 9, 1, 9, 9],
# ▇▁▅▁▁
[1, 2, 4, 3, 5, 9, 9],
# ▄▅▆▆▇▁▁
[1, 4, 2, 3, 5, 9, 9],
# ▄▆▅▆▇▁▁
[6, 9, 9, 9],
# ▇▁▁▁
)
root=52
scale=:minor_pentatonic
use_tuning :just, root+1
use_synth :pretty_bell
live_loop :lixy do
play_lick(lix[tick],root, scale, 0.1)
sleep 0.45
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment