Last active
November 3, 2020 17:21
-
-
Save libewa/f183051720b82a3f49928f1e602d660e to your computer and use it in GitHub Desktop.
Sonic Pi code that plays notes randomly
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
# random.rb | |
use_synth :beep | |
loop :random do | |
play choose([:C, :D, :E, :F, :G, :A, :B, :C2]) | |
sleep 0.5 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment