Class: SMF::KeySignature
Instance Attribute Summary collapse
-
#mi ⇒ Object
Returns the value of attribute mi.
-
#sf ⇒ Object
Returns the value of attribute sf.
Attributes inherited from Event
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(offset, sf, mi) ⇒ KeySignature
constructor
A new instance of KeySignature.
Methods inherited from Event
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
#mi ⇒ Object
Returns the value of attribute mi.
717 718 719 |
# File 'lib/smf.rb', line 717 def mi @mi end |
#sf ⇒ Object
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 |