Class: SMF::ProgramChange
- Inherits:
-
VoiceMessage
- Object
- Event
- MIDIMessage
- ChannelMessage
- VoiceMessage
- SMF::ProgramChange
- Defined in:
- lib/smf.rb
Instance Attribute Summary collapse
-
#num ⇒ Object
(also: #number)
Returns the value of attribute num.
Attributes inherited from ChannelMessage
Attributes inherited from Event
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(offset, ch, num) ⇒ ProgramChange
constructor
A new instance of ProgramChange.
Methods inherited from Event
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
#num ⇒ Object 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 |