Class: SMF::ChannelMessage
- Inherits:
-
MIDIMessage
- Object
- Event
- MIDIMessage
- SMF::ChannelMessage
- Defined in:
- lib/smf.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#ch ⇒ Object
(also: #channel)
Returns the value of attribute ch.
Attributes inherited from Event
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(offset, ch) ⇒ ChannelMessage
constructor
A new instance of ChannelMessage.
Methods inherited from Event
Constructor Details
#initialize(offset, ch) ⇒ ChannelMessage
Returns a new instance of ChannelMessage.
297 298 299 300 301 |
# File 'lib/smf.rb', line 297 def initialize(offset, ch) # ch:0/2**4-1 super(offset) @ch = ch end |
Instance Attribute Details
#ch ⇒ Object Also known as: channel
Returns the value of attribute ch.
303 304 305 |
# File 'lib/smf.rb', line 303 def ch @ch end |
Instance Method Details
#==(other) ⇒ Object
308 309 310 |
# File 'lib/smf.rb', line 308 def == (other) super && ch == other.ch end |