class

MIDIFile::Track

Inherits BinData < Reference < Object

Constants

ENDIAN = ["big"]
KLASS_NAME = [MIDIFile::Track]
PARTS = [{type: "string", name: chunk_id, cls: String, onlyif: nil, verify: -> do chunk_id == "MTrk" end, length: -> do 4 end, value: -> do "MTrk" end, encoding: nil}, {type: "basic", name: chunk_size, cls: UInt32, onlyif: nil, verify: nil, value: nil}, {type: "bytes", name: data, cls: Bytes, onlyif: nil, verify: nil, length: -> do chunk_size end, value: nil}] of Nil
REMAINING = [] of Nil

Class methods

bit_fields
Source
from_io(io, byte_format : IO::ByteFormat)
Source

Instance methods

__format__
Source
apply(byte_format : IO::ByteFormat)
Source
chunk_id
chunk_id=(chunk_id : String)
chunk_size
chunk_size=(chunk_size : UInt32)
data
data=(data : Bytes)
events
Source
events=(events : Array(Event))
Source
parse_events(byte_format : IO::ByteFormat)
Source
to_io(io, byte_format : IO::ByteFormat)
Source

Macros

midi_file_event(name, onlyif = nil, verify = nil, value = nil)
Source
midi_file_meta_event(name, onlyif = nil, verify = nil, value = nil)
Source
midi_file_status_event(name, onlyif = nil, verify = nil, value = nil)
Source
midi_file_sysex_event(name, onlyif = nil, verify = nil, value = nil)
Source
midi_file_track(name, onlyif = nil, verify = nil, value = nil)
Source
midi_file_vlq(name, onlyif = nil, verify = nil, value = nil)
Source