Class: MIDIMessage::RawChannelMessage
- Inherits:
-
Object
- Object
- MIDIMessage::RawChannelMessage
- Includes:
- ChannelMessage, ShortMessage
- Defined in:
- lib/midi-message/channel_message.rb
Overview
use this if you want to instantiate a raw channel message
example = ChannelMessage.new(0x9, 0x0, 0x40, 0x57) # creates a raw note-on message
Instance Attribute Summary
Attributes included from ChannelMessage
Attributes included from ShortMessage
Instance Method Summary collapse
-
#initialize(*a) ⇒ RawChannelMessage
constructor
A new instance of RawChannelMessage.
- #to_type ⇒ Object
Methods included from ChannelMessage
Methods included from ShortMessage
#initialize_short_message, #to_a, #to_hex_s
Constructor Details
#initialize(*a) ⇒ RawChannelMessage
Returns a new instance of RawChannelMessage.
96 97 98 |
# File 'lib/midi-message/channel_message.rb', line 96 def initialize(*a) (*a) end |
Instance Method Details
#to_type ⇒ Object
100 101 102 103 |
# File 'lib/midi-message/channel_message.rb', line 100 def to_type status = (@status[0] << 4) + (@status[1]) MIDIMessage.parse(status, *@data) end |