Class: MIDI::NoteOff
- Inherits:
-
NoteEvent
- Object
- Event
- ChannelEvent
- NoteEvent
- MIDI::NoteOff
- Defined in:
- lib/midilib/event.rb
Constant Summary
Constants inherited from NoteEvent
Instance Attribute Summary collapse
-
#on ⇒ Object
Returns the value of attribute on.
Attributes inherited from NoteEvent
Attributes inherited from ChannelEvent
Attributes inherited from Event
#delta_time, #print_channel_numbers_from_one, #print_decimal_numbers, #print_note_names, #status, #time_from_start
Instance Method Summary collapse
-
#initialize(channel = 0, note = 64, velocity = 64, delta_time = 0) ⇒ NoteOff
constructor
A new instance of NoteOff.
- #to_s ⇒ Object
Methods inherited from NoteEvent
#data_as_bytes, #note_to_s, #pch_oct
Methods inherited from Event
#<=>, #channel_to_s, #data_as_bytes, #number_to_s, #quantize_to
Constructor Details
Instance Attribute Details
#on ⇒ Object
Returns the value of attribute on.
150 151 152 |
# File 'lib/midilib/event.rb', line 150 def on @on end |
Instance Method Details
#to_s ⇒ Object
156 157 158 159 |
# File 'lib/midilib/event.rb', line 156 def to_s super << "off #{note_to_s} #{number_to_s(@velocity)}" end |