Class: SMF::ProgramChange

Inherits:
VoiceMessage show all
Defined in:
lib/smf.rb

Instance Attribute Summary collapse

Attributes inherited from ChannelMessage

#ch

Attributes inherited from Event

#offset

Instance Method Summary collapse

Methods inherited from Event

#<=>, #eql?, #hash

Constructor Details

#initialize(offset, ch, num) ⇒ ProgramChange

Returns a new instance of ProgramChange.



401
402
403
404
405
# File 'lib/smf.rb', line 401

def initialize(offset, ch, num)
  # num:0/2**7-1
  super(offset, ch)
  @num = num
end

Instance Attribute Details

#numObject Also known as: number

Returns the value of attribute num.



407
408
409
# File 'lib/smf.rb', line 407

def num
  @num
end

Instance Method Details

#==(other) ⇒ Object



412
413
414
# File 'lib/smf.rb', line 412

def == (other)
  super && num == other.num
end