Class: Webmidi::SMF::MIDIEvent
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(message:, **kwargs) ⇒ MIDIEvent
constructor
A new instance of MIDIEvent.
- #to_bytes ⇒ Object
Constructor Details
#initialize(message:, **kwargs) ⇒ MIDIEvent
Returns a new instance of MIDIEvent.
37 38 39 40 |
# File 'lib/webmidi/smf/event.rb', line 37 def initialize(message:, **kwargs) super(**kwargs) @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
35 36 37 |
# File 'lib/webmidi/smf/event.rb', line 35 def @message end |
Instance Method Details
#to_bytes ⇒ Object
42 43 44 |
# File 'lib/webmidi/smf/event.rb', line 42 def to_bytes @message.to_bytes end |