Skip to content

Instantly share code, notes, and snippets.

@peagha
Created July 24, 2016 21:39
Show Gist options
  • Save peagha/ae2f8f4cc2b65a9c32969ef39a597382 to your computer and use it in GitHub Desktop.
Save peagha/ae2f8f4cc2b65a9c32969ef39a597382 to your computer and use it in GitHub Desktop.
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