Enum Class Degree.Natural

java.lang.Object
java.lang.Enum<Degree.Natural>
org.jjazz.harmony.api.Degree.Natural
All Implemented Interfaces:
Serializable, Comparable<Degree.Natural>, Constable
Enclosing class:
Degree

public static enum Degree.Natural extends Enum<Degree.Natural>
The natural degrees.
  • Enum Constant Details

  • Method Details

    • values

      public static Degree.Natural[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Degree.Natural valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getIntValue

      public int getIntValue()
    • getPitch

      public int getPitch()
    • toStringShort

      public String toStringShort()
    • getFromIntValue

      public static Degree.Natural getFromIntValue(int intValue)
      Parameters:
      intValue - Possible values = 1, 9, 3, 11, 5, 13, 7
      Returns:
      The Natural which match intValue, or null.
    • get

      public static Degree.Natural get(int relPitch)
      Parameters:
      relPitch - 0-11
      Returns:
      The Natural which match relPitch, or null.