Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created March 6, 2016 10:46
Show Gist options
  • Save nicoder/3f2cef87e00f91275d34 to your computer and use it in GitHub Desktop.
Save nicoder/3f2cef87e00f91275d34 to your computer and use it in GitHub Desktop.
use_synth :piano
live_loop :a do |i|
play (ring 60, 62, 64, 60).tick(:a), pan: -1 if i < 64
play (ring 64, 65, 67, nil).tick(:b), pan: -0.5 if i > 7 and i < 72
play (ring 67, 67, 64, 60).tick(:c), pan: 0.5 if i > 15 and i < 80
play (ring 62, 55, 60, nil).tick(:d), pan: 1 if i > 23 and i < 88
stop if i == 88
sleep 0.5
i += 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment