Class: MIDIEvents::SystemExclusive::Request

Inherits:
Object
  • Object
show all
Includes:
MIDIEvents::SystemExclusive
Defined in:
lib/midi-events/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 MIDIEvents::SystemExclusive

DELIMITER, DISPLAY_NAME, ID

Constants included from MIDIEvents

ChannelPressure, Controller, PolyAftertouch, PolyPressure, PolyphonicPressure, VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MIDIEvents::SystemExclusive

included, new

Methods included from MIDIEvents

with_context

Constructor Details

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

Returns a new instance of Request.



189
190
191
192
193
194
195
196
# File 'lib/midi-events/messages.rb', line 189

def initialize(address, size, options = {})
  self.size = if size.is_a?(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.



184
185
186
# File 'lib/midi-events/messages.rb', line 184

def size
  @size
end