Class: MIDIEvents::ChannelMessage::Message
- Inherits:
-
Object
- Object
- MIDIEvents::ChannelMessage::Message
- Includes:
- MIDIEvents::ChannelMessage
- Defined in:
- lib/midi-events/channel_message.rb
Overview
Use this if you want to instantiate a raw channel message
For example ChannelMessage::Message.new(0x9, 0x0, 0x40, 0x57) creates a raw note-on message
Constant Summary collapse
- DISPLAY_NAME =
'Channel Message'.freeze
Instance Attribute Summary collapse
-
#data ⇒ Object
included
from MIDIEvents::ChannelMessage
readonly
Returns the value of attribute data.
-
#name ⇒ Object
included
from MIDIEvents::ChannelMessage
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(*data) ⇒ RawChannelMessage
constructor
Build a Channel Message from raw nibbles and bytes eg ChannelMessage.new(0x9, 0x0, 0x40, 0x40).
Constructor Details
#initialize(*data) ⇒ RawChannelMessage
Build a Channel Message from raw nibbles and bytes eg ChannelMessage.new(0x9, 0x0, 0x40, 0x40)
147 148 149 |
# File 'lib/midi-events/channel_message.rb', line 147 def initialize(*data) (*data) end |
Instance Attribute Details
#data ⇒ Object (readonly) Originally defined in module MIDIEvents::ChannelMessage
Returns the value of attribute data.
#name ⇒ Object (readonly) Originally defined in module MIDIEvents::ChannelMessage
Returns the value of attribute name.