struct Haematite::Message
- Haematite::Message
- Struct
- Value
- Object
Overview
Represents a single message within a MIDI file.
Defined in:
haematite/message.crConstructors
-
.common(status : UInt8, data1 : UInt8, data2 : UInt8, loopType : MidiFileLoopType) : Message
Creates a normal MIDI message.
-
.common(status : UInt8, data1 : UInt8) : Message
Creates a normal MIDI message.
-
.endOfTrack : Message
Creates an "end of track" message.
-
.loopEnd : Message
Creates a loop end point message.
-
.loopStart : Message
Creates a loop start point message.
- .new(channel : UInt8, command : UInt8, data1 : UInt8, data2 : UInt8)
-
.tempoChange(tempo : Int) : Message
Creates a tempo change message.
Instance Method Summary
-
#channel : UInt8
The channel this message's data is intended for.
-
#command : UInt8
The command this message represents.
-
#data1 : UInt8
Data byte 1 of the message.
-
#data2 : UInt8
Data byte 2 of the message.
-
#tempo : Float64
Returns the tempo this message represents.
-
#to_s(io : IO)
Same as
#inspect(io)
. -
#type : MessageType
Returns the type for this message.
Constructor Detail
def self.common(status : UInt8, data1 : UInt8, data2 : UInt8, loopType : MidiFileLoopType) : Message
#
Creates a normal MIDI message.