Class: Clef::Notation::Dynamic
- Inherits:
-
Object
- Object
- Clef::Notation::Dynamic
- Defined in:
- lib/clef/notation/dynamic.rb
Constant Summary collapse
- TYPES =
%i[pp p mp mf f ff fff sfz fp cresc dim].freeze
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ Dynamic
constructor
A new instance of Dynamic.
- #length ⇒ Rational
Constructor Details
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/clef/notation/dynamic.rb', line 8 def type @type end |
Instance Method Details
#length ⇒ Rational
18 19 20 |
# File 'lib/clef/notation/dynamic.rb', line 18 def length Rational(0, 1) end |