Class: MIDIEvents::ChannelMessage::Message

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(*data) ⇒ RawChannelMessage

Build a Channel Message from raw nibbles and bytes eg ChannelMessage.new(0x9, 0x0, 0x40, 0x40)

Parameters:

  • data (*Fixnum)

    The status nibbles and data bytes



147
148
149
# File 'lib/midi-events/channel_message.rb', line 147

def initialize(*data)
  initialize_channel_message(*data)
end

Instance Attribute Details

#dataObject (readonly) Originally defined in module MIDIEvents::ChannelMessage

Returns the value of attribute data.

#nameObject (readonly) Originally defined in module MIDIEvents::ChannelMessage

Returns the value of attribute name.