Class: SMF::ChannelMessage

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

Direct Known Subclasses

ChannelModeMessage, VoiceMessage

Instance Attribute Summary collapse

Attributes inherited from Event

#offset

Instance Method Summary collapse

Methods inherited from Event

#<=>, #eql?, #hash

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

#chObject 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