Class: MIDIEvents::SystemExclusive::Request
- Inherits:
-
Object
- Object
- MIDIEvents::SystemExclusive::Request
- 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
Constants included from MIDIEvents
ChannelPressure, Controller, PolyAftertouch, PolyPressure, PolyphonicPressure, VERSION
Instance Attribute Summary collapse
-
#size ⇒ Object
(also: #value)
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(address, size, options = {}) ⇒ Request
constructor
A new instance of Request.
Methods included from MIDIEvents::SystemExclusive
Methods included from MIDIEvents
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, = {}) self.size = if size.is_a?(Array) && size.count == 1 size.first else size end initialize_sysex(address, ) end |
Instance Attribute Details
#size ⇒ Object 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 |