Method: MTK::IO::MIDIFile#initialize

Defined in:
lib/mtk/io/midi_file.rb

#initialize(file) ⇒ MIDIFile

Returns a new instance of MIDIFile.



10
11
12
13
14
15
16
# File 'lib/mtk/io/midi_file.rb', line 10

def initialize file
  if file.respond_to? :path
    @file = file.path
  else
    @file = file.to_s
  end
end