Module: Midi::Measure
- Defined in:
- lib/kuromusic/IO/MIDI/Measure.rb
Instance Method Summary collapse
Instance Method Details
#to_bin(key) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/kuromusic/IO/MIDI/Measure.rb', line 7 def to_bin(key) .map {|m| m.extend(Midi::Event) m.to_bin }.flatten.concat @chords.map {|c| c.extend(Midi::Chord) c.to_bin(key) }.flatten! end |