class MIDI::NoteOff
Attributes
on[RW]
Public Class Methods
new(channel = 0, note = 64, velocity = 64, delta_time = 0)
click to toggle source
Calls superclass method
MIDI::NoteEvent::new
# File lib/midilib/event.rb, line 152 def initialize(channel = 0, note = 64, velocity = 64, delta_time = 0) super(NOTE_OFF, channel, note, velocity, delta_time) end
Public Instance Methods
to_s()
click to toggle source
Calls superclass method
MIDI::ChannelEvent#to_s
# File lib/midilib/event.rb, line 156 def to_s super << "off #{note_to_s} #{number_to_s(@velocity)}" end