Class MetrumName

java.lang.Object
eu.bandm.music.entities.MetrumName
All Implemented Interfaces:
MetrumIndication

public class MetrumName extends Object implements MetrumIndication
Simple version of a name for a metrum, consisting of two integers only, arranged and interpreted as if a Rational number >0.
  • Field Details

    • num

      protected final int num
      The equivalent to a rational numerator.
    • den

      protected final int den
      The equivalent to a rational denominator.
    • duration

      protected Rational duration
      The equivalent Rational value.
    • parser

      public static Translet.Parser<MetrumName> parser
      Evident
  • Constructor Details

    • MetrumName

      public MetrumName(int num, int den)
      Only constructor.
      Throws:
      IllegalArgumentException - if num or den <= 0
  • Method Details