Class: MIDIMessage::SystemExclusive::Request
- Inherits:
-
Object
- Object
- MIDIMessage::SystemExclusive::Request
- 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
Constants included from MIDIMessage
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 MIDIMessage::SystemExclusive
Methods included from MIDIMessage
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, = {}) self.size = if size.kind_of?(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.
207 208 209 |
# File 'lib/midi-message/messages.rb', line 207 def size @size end |