class MIDI::ProgramChange
Attributes
program[RW]
Public Class Methods
new(channel = 0, program = 0, delta_time = 0)
click to toggle source
Calls superclass method
MIDI::ChannelEvent::new
# File lib/midilib/event.rb, line 208 def initialize(channel = 0, program = 0, delta_time = 0) super(PROGRAM_CHANGE, channel, delta_time) @program = program end
Public Instance Methods
data_as_bytes()
click to toggle source
# File lib/midilib/event.rb, line 213 def data_as_bytes data = [] data << (@status + @channel) data << @program end
to_s()
click to toggle source
Calls superclass method
MIDI::ChannelEvent#to_s
# File lib/midilib/event.rb, line 219 def to_s super << "prog #{number_to_s(@program)}" end