Created
July 24, 2016 21:39
-
-
Save peagha/ae2f8f4cc2b65a9c32969ef39a597382 to your computer and use it in GitHub Desktop.
This file contains 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 :fm | |
interval = 0.13 | |
chord1 = [:fs5, :b5, :d6] | |
chord2 = [:gs5, :b5, :d6] | |
chord3 = [:b5, :e6, :g6] | |
chord4 = [:a5, :cs6, :e6] | |
chord5 = [:fs6, :b5, :d6] | |
chords = [chord1, | |
chord2, | |
chord3, | |
chord4, | |
chord5, | |
chord2, | |
chord3, | |
chord4] | |
arpeggio = [2, 0, 1, 0] | |
chords.cycle(2).each do |chord| | |
arpeggio.cycle(4).each do |i| | |
play chord[i] | |
sleep interval | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment