class MIDIFile::StatusEvent

Defined in:

midi_file/status_event.cr

Constant Summary

DATA_SIZES = {Type::NoteOff => 2, Type::NoteOn => 2, Type::NotePressure => 2, Type::Control => 2, Type::Program => 1, Type::ChannelPressure => 1, Type::PitchBend => 2}
ENDIAN = ["system"]
KLASS_NAME = [MIDIFile::StatusEvent]
PARTS = [{type: "basic", name: data1, cls: UInt8, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: data2, cls: UInt8, onlyif: -> do DATA_SIZES[type] > 1 end, verify: nil, value: nil}] of Nil
REMAINING = [] of Nil

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class MIDIFile::Event

__format__ : IO::ByteFormat __format__, delta : VLQ delta, delta=(delta : VLQ) delta=, event_head : UInt8 event_head, event_head=(event_head : UInt8) event_head=, to_s(io) to_s

Class methods inherited from class MIDIFile::Event

bit_fields bit_fields, from_io_with_running_status(io, byte_format : IO::ByteFormat, running_status : StatusEvent | Nil) from_io_with_running_status

Class Method Detail

def self.bit_fields #

[View source]
def self.from_io_with_running_status(io, byte_format : IO::ByteFormat, running_status : StatusEvent | Nil, delta : VLQ) #

[View source]

Instance Method Detail

def channel #

[View source]
def channel=(new_channel : UInt8) #

[View source]
def data1 : UInt8 #

def data1=(data1 : UInt8) #

def data2 : UInt8 #

def data2=(data2 : UInt8) #

def event_data #

[View source]
def to_io_with_running_status(io, byte_format : IO::ByteFormat, running_status : StatusEvent | Nil) #

[View source]
def to_s(io) #

[View source]
def type #

[View source]
def type=(new_type : Type) #

[View source]

Macro Detail

macro midi_file_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_vlq(name, onlyif = nil, verify = nil, value = nil) #

[View source]