Class: SMF::ControlChange

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, val) ⇒ ControlChange

Returns a new instance of ControlChange.



379
380
381
382
383
# File 'lib/smf.rb', line 379

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

Instance Attribute Details

#numObject Also known as: number

Returns the value of attribute num.



385
386
387
# File 'lib/smf.rb', line 385

def num
  @num
end

#valObject Also known as: value

Returns the value of attribute val.



385
386
387
# File 'lib/smf.rb', line 385

def val
  @val
end

Instance Method Details

#==(other) ⇒ Object



393
394
395
# File 'lib/smf.rb', line 393

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