Class: MIDIMessage::SystemRealtime
- Inherits:
-
Object
- Object
- MIDIMessage::SystemRealtime
- Includes:
- ShortMessage
- Defined in:
- lib/midi-message/system_message.rb
Overview
MIDI System-Realtime message
Instance Attribute Summary
Attributes included from ShortMessage
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(*a) ⇒ SystemRealtime
constructor
A new instance of SystemRealtime.
Methods included from ShortMessage
#initialize_short_message, #to_a, #to_hex_s
Constructor Details
#initialize(*a) ⇒ SystemRealtime
Returns a new instance of SystemRealtime.
34 35 36 37 38 39 |
# File 'lib/midi-message/system_message.rb', line 34 def initialize(*a) = a.last.kind_of?(Hash) ? a.pop : {} @const = [:const] id = @const.nil? ? a[0] : @const.value (0xF, id) end |
Instance Method Details
#id ⇒ Object
41 42 43 |
# File 'lib/midi-message/system_message.rb', line 41 def id @status[1] end |