class MIDI::IO::SeqWriter

Public Instance Methods

original_write_instrument(instrument)
Alias for: write_instrument
write_header() click to toggle source

Also monkey patching write_header to support alternate MIDI file formats

# File lib/mtk/io/midi_file.rb, line 236
def write_header
  @io.print 'MThd'
  write32(6)
  write16(@seq.format || 1)
  write16(@seq.tracks.length)
  write16(@seq.ppqn)
end
write_instrument(instrument) click to toggle source
# File lib/mtk/io/midi_file.rb, line 231
def write_instrument(instrument)
  original_write_instrument(instrument) unless instrument.nil?
end
Also aliased as: original_write_instrument