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
- TypeByte =
0x11
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.
182 183 184 185 186 187 188 189 |
# File 'lib/midi-message/messages.rb', line 182 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.
177 178 179 |
# File 'lib/midi-message/messages.rb', line 177 def size @size end |