Created
March 6, 2016 10:46
-
-
Save nicoder/3f2cef87e00f91275d34 to your computer and use it in GitHub Desktop.
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
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