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

Constants included from MIDIEvents

MIDIEvents::ChannelPressure, MIDIEvents::Controller, PolyAftertouch, PolyPressure, PolyphonicPressure, VERSION

Instance Attribute Summary

Attributes included from MIDIEvents::ChannelMessage

#data, #name

Instance Method Summary collapse

Methods included from MIDIEvents::ChannelMessage

new

Methods included from MIDIEvents

with_context

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