MIDIFile::File
Constants
ENDIAN = ["big"]
KLASS_NAME = [MIDIFile::File]
PARTS = [{type: "string", name: chunk_id, cls: String, onlyif: nil, verify: -> do
chunk_id == "MThd"
end, length: -> do
4
end, value: -> do
"MThd"
end,
encoding: nil}, {type: "basic", name: chunk_size, cls: UInt32, onlyif: nil, verify: -> do
chunk_size == 6
end, value: -> do
6_u16
end}, {type: "enum", name: format, cls: UInt16,
onlyif: nil, verify: nil, value: nil, encoding: Format}, {type: "basic", name: track_count, cls: UInt16, onlyif: nil, verify: -> do
case format
when Format::SingleTrack
track_count == 1
when Format::MultiTrack, Format::MultiSong
track_count > 1
end
end,
value: nil}, {type: "basic", name: ppqn, cls: UInt16, onlyif: nil, verify: nil, value: -> do
480_u16
end}, {type: "variable_array", name: tracks, cls: Track,
onlyif: nil, verify: nil, length: -> do
tracks.size < track_count
end,
value: nil}] of Nil
REMAINING = [] of Nil
Class methods
bit_fields
SourceInstance methods
__format__
Sourcechunk_id
chunk_id=(chunk_id : String)
chunk_size
chunk_size=(chunk_size : UInt32)
format
format=(format : Format)
ppqn
ppqn=(ppqn : UInt16)
to_s(io)
Sourcetrack_count
track_count=(track_count : UInt16)
tracks
Macros
midi_file_event(name, onlyif = nil, verify = nil, value = nil)
Sourcemidi_file_file(name, onlyif = nil, verify = nil, value = nil)
Sourcemidi_file_meta_event(name, onlyif = nil, verify = nil, value = nil)
Sourcemidi_file_status_event(name, onlyif = nil, verify = nil, value = nil)
Sourcemidi_file_sysex_event(name, onlyif = nil, verify = nil, value = nil)
Sourcemidi_file_track(name, onlyif = nil, verify = nil, value = nil)
Sourcemidi_file_vlq(name, onlyif = nil, verify = nil, value = nil)
Source