Class: SMF::ControlChange
- Inherits:
-
VoiceMessage
- Object
- Event
- MIDIMessage
- ChannelMessage
- VoiceMessage
- SMF::ControlChange
- Defined in:
- lib/smf.rb
Instance Attribute Summary collapse
-
#num ⇒ Object
(also: #number)
Returns the value of attribute num.
-
#val ⇒ Object
(also: #value)
Returns the value of attribute val.
Attributes inherited from ChannelMessage
Attributes inherited from Event
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(offset, ch, num, val) ⇒ ControlChange
constructor
A new instance of ControlChange.
Methods inherited from Event
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
#num ⇒ Object Also known as: number
Returns the value of attribute num.
385 386 387 |
# File 'lib/smf.rb', line 385 def num @num end |
#val ⇒ Object 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 |