class SMF::NoteOff

Attributes

note[RW]

Public Class Methods

new(offset, ch, note, vel) click to toggle source
Calls superclass method SMF::ChannelMessage::new
# File lib/smf.rb, line 318
def initialize(offset, ch, note, vel)
  # note:0/2**7-1, vel:0/2**7-1
  super(offset, ch)
  @note, @vel = note, vel
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method SMF::ChannelMessage#==
# File lib/smf.rb, line 333
def == (other)
  super && note == other.note && vel == other.vel
end
fake?() click to toggle source
# File lib/smf.rb, line 328
def fake?() @vel.nil? end
vel() click to toggle source
# File lib/smf.rb, line 326
def vel() @vel || 64 end
Also aliased as: velocity
vel=(vel) click to toggle source
# File lib/smf.rb, line 327
def vel=(vel) @vel = vel end
Also aliased as: velocity=
velocity()
Alias for: vel
velocity=(vel)
Alias for: vel=