class

MIDIFile::StatusEvent

Inherits MIDIFile::Event < BinData < Reference < Object

Constants

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 methods

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

Instance methods

channel
Source
channel=(new_channel : UInt8)
Source
data1
data1=(data1 : UInt8)
data2
data2=(data2 : UInt8)
event_data
Source
to_io_with_running_status(io, byte_format : IO::ByteFormat, running_status : StatusEvent | Nil)
Source
to_s(io)
Source
type
Source
type=(new_type : Type)
Source

Macros

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

Nested types