Class RationalDuration.DottedBaseDuration

java.lang.Object
eu.bandm.music.entities.RationalDuration.DottedBaseDuration
Enclosing class:
RationalDuration

public static class RationalDuration.DottedBaseDuration extends Object
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 Details

    • baseValue

      protected Rational baseValue
      The value of the base note symbol, is always a power of two.
    • value

      protected Rational value
      The value resulting from dotting.
    • baseExponent

      protected int baseExponent
      The 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 dotCount
      The number of dots.
    • dotString

      protected String dotString
      For convenience: String representation of the sequence of prolongation dots.
  • Constructor Details

    • DottedBaseDuration

      protected DottedBaseDuration(Rational value, Rational baseValue, int baseExponent, int dotCount)
      Only construtor.
      Parameters:
      value - of the complete construction.
      baseValue - of the dotted note symbol
      baseExponent - of the base value
      dotCount -
  • Method Details

    • get_value

      public Rational get_value()
      Evident
    • get_baseValue

      public Rational get_baseValue()
      Evident
    • get_dotCount

      public int get_dotCount()
      Evident
    • get_dotString

      public String 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

      public String toString()
      Overrides:
      toString in class Object