Package eu.bandm.music.entities
Class RationalDuration.DottedBaseDuration
java.lang.Object
eu.bandm.music.entities.RationalDuration.DottedBaseDuration
- Enclosing class:
- RationalDuration
Convenience class which allows to retrieve base value, effective value,
dot count, dots as a text string, etc. for a CWN duration symbol with
prolongation dots.
The instances are only created by
RationalDuration.dottedNotation(Rational)
and
stored in the local cache RationalDuration.cache_dotted
.-
Field Summary
Modifier and TypeFieldDescriptionprotected int
The exponent of the DENOMINATOR of the base value to base 2, which is the exponent of the base value to base 0.5.protected Rational
The value of the base note symbol, is always a power of two.protected int
The number of dots.protected String
For convenience: String representation of the sequence of prolongation dots.protected Rational
The value resulting from dotting. -
Constructor Summary
ModifierConstructorDescriptionprotected
DottedBaseDuration
(Rational value, Rational baseValue, int baseExponent, int dotCount) Only construtor. -
Method Summary
Modifier and TypeMethodDescriptionint
returns the exponent of the denominator of the base duration, eg.Evidentint
EvidentEvidentEvidenttoString()
-
Field Details
-
baseValue
The value of the base note symbol, is always a power of two. -
value
The value resulting from dotting. -
baseExponent
protected int baseExponentThe exponent of the DENOMINATOR of the base value to base 2, which is the exponent of the base value to base 0.5. -
dotCount
protected int dotCountThe number of dots. -
dotString
For convenience: String representation of the sequence of prolongation dots.
-
-
Constructor Details
-
DottedBaseDuration
Only construtor.- Parameters:
value
- of the complete construction.baseValue
- of the dotted note symbolbaseExponent
- of the base valuedotCount
-
-
-
Method Details
-
get_value
Evident -
get_baseValue
Evident -
get_dotCount
public int get_dotCount()Evident -
get_dotString
Evident -
get_baseExponent
public int get_baseExponent()returns the exponent of the denominator of the base duration, eg. 2=quarter note, 0=whole note, -1=brevis -
toString
-