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

TYPE =
0x11

Constants included from MIDIMessage::SystemExclusive

DELIMITER, DISPLAY_NAME, ID

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.



212
213
214
215
216
217
218
219
# File 'lib/midi-message/messages.rb', line 212

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.



207
208
209
# File 'lib/midi-message/messages.rb', line 207

def size
  @size
end