Class: MIDIMessage::SystemExclusive::Request

Inherits:
Object
  • Object
show all
Includes:
MIDIMessage::SystemExclusive
Defined in:
lib/midi-message/messages.rb

Overview

A SysEx request message A request message is identified by having a status byte equal to 0x11

Constant Summary collapse

TypeByte =
0x11

Constants included from MIDIMessage

ChannelPressure, Controller, PolyAftertouch, PolyPressure, PolyphonicPressure, VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MIDIMessage::SystemExclusive

included, new

Methods included from MIDIMessage

parse, with_context

Constructor Details

#initialize(address, size, options = {}) ⇒ Request

Returns a new instance of Request.



182
183
184
185
186
187
188
189
# File 'lib/midi-message/messages.rb', line 182

def initialize(address, size, options = {})
  self.size = if size.kind_of?(Array) && size.count == 1
    size.first
  else
    size
  end
  initialize_sysex(address, options)
end

Instance Attribute Details

#sizeObject Also known as: value

Returns the value of attribute size.



177
178
179
# File 'lib/midi-message/messages.rb', line 177

def size
  @size
end