Class: SMF::KeySignature

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

Instance Attribute Summary collapse

Attributes inherited from Event

#offset

Instance Method Summary collapse

Methods inherited from Event

#<=>, #eql?, #hash

Constructor Details

#initialize(offset, sf, mi) ⇒ KeySignature

Returns a new instance of KeySignature.



711
712
713
714
715
# File 'lib/smf.rb', line 711

def initialize(offset, sf, mi)
  # sf:-2**7/2**7-1, mi:0/1
  super(offset)
  @sf, @mi = sf, mi
end

Instance Attribute Details

#miObject

Returns the value of attribute mi.



717
718
719
# File 'lib/smf.rb', line 717

def mi
  @mi
end

#sfObject

Returns the value of attribute sf.



717
718
719
# File 'lib/smf.rb', line 717

def sf
  @sf
end

Instance Method Details

#==(other) ⇒ Object



719
720
721
# File 'lib/smf.rb', line 719

def == (other)
  super && sf == other.sf && mi == other.mi
end