Class: MIDI::ChannelEvent
Overview
The abstract superclass of all channel events (events that have a MIDI channel, like notes and program changes).
Direct Known Subclasses
ChannelPressure, Controller, NoteEvent, PitchBend, ProgramChange
Instance Attribute Summary collapse
-
#channel ⇒ Object
MIDI channel, 0-15.
Attributes inherited from Event
#delta_time, #print_decimal_numbers, #print_note_names, #status, #time_from_start
Instance Method Summary collapse
Methods inherited from Event
#<=>, #channel?, #data_as_bytes, #meta?, #note?, #note_off?, #note_on?, #number_to_s, #quantize_to, #realtime?, #system?
Instance Attribute Details
#channel ⇒ Object
MIDI channel, 0-15.
118 119 120 |
# File 'lib/midilib/event.rb', line 118 def channel @channel end |
Instance Method Details
#to_s ⇒ Object
127 128 129 |
# File 'lib/midilib/event.rb', line 127 def to_s return super << "ch #{number_to_s(@channel)} " end |