class MIDI::ChannelEvent
The abstract superclass of all channel events (events that have a MIDI
channel, like notes and program changes).
Attributes
channel[RW]
MIDI
channel, 0-15.
Public Class Methods
new(status, channel, delta_time)
click to toggle source
Calls superclass method
MIDI::Event::new
# File lib/midilib/event.rb, line 87 def initialize(status, channel, delta_time) super(status, delta_time) @channel = channel end
Public Instance Methods
to_s()
click to toggle source
Calls superclass method
MIDI::Event#to_s
# File lib/midilib/event.rb, line 93 def to_s super << "ch #{channel_to_s(@channel)} " end