Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 057fc2597c
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (14 sloc) 0.363 kb
require 'rubygems'
require 'midiator'
midi = MIDIator::Interface.new
midi.autodetect_driver
include MIDIator::Notes
C4MAJ = [ C4, E4, G4 ]
F4MAJII = [ C4, F4, A4 ]
G4MAJ = [ D4, G4, B4 ]
song = [ C3, C4MAJ, C3, C4MAJ, F3, F4MAJII, F3, F4MAJII, G3, G4MAJ, G3, G4MAJ, C5, C4MAJ, C2, C4MAJ]
4.times do
song.each do |note|
midi.play note, 0.25
end
end
Jump to Line
Something went wrong with that request. Please try again.