class MIDI::NoteOnEvent

Attributes

off[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 136
def initialize(channel = 0, note = 64, velocity = 64, delta_time = 0)
  super(NOTE_ON, 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 140
def to_s
  super <<
    "on #{note_to_s} #{number_to_s(@velocity)}"
end