class MIDIFile::Track

Defined in:

midi_file/track.cr

Constant Summary

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 Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.bit_fields #

[View source]
def self.from_io(io, byte_format : IO::ByteFormat) #

[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def apply(byte_format : IO::ByteFormat) #

[View source]
def chunk_id : String #

def chunk_id=(chunk_id : String) #

def chunk_size : UInt32 #

def chunk_size=(chunk_size : UInt32) #

def data : Bytes #

def data=(data : Bytes) #

def events : Array(Event) #

[View source]
def events=(events : Array(Event)) #

[View source]
def parse_events(byte_format : IO::ByteFormat) #

[View source]
def to_io(io, byte_format : IO::ByteFormat) #

[View source]

Macro Detail

macro midi_file_event(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro midi_file_meta_event(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro midi_file_status_event(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro midi_file_sysex_event(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro midi_file_track(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro midi_file_vlq(name, onlyif = nil, verify = nil, value = nil) #

[View source]