Enum Class PitchGrid.diatonicIntervals

java.lang.Object
java.lang.Enum<PitchGrid.diatonicIntervals>
eu.bandm.music.applications.tabstaff.PitchGrid.diatonicIntervals
All Implemented Interfaces:
Serializable, Comparable<PitchGrid.diatonicIntervals>, Constable
Enclosing class:
PitchGrid

static enum PitchGrid.diatonicIntervals extends Enum<PitchGrid.diatonicIntervals>
  • Enum Constant Details

    • byHalfTones

      public static final PitchGrid.diatonicIntervals byHalfTones
      Takes the first diatonic step which is at or higher than three half-tone steps as a third, and five as a fourth.
    • byScalePosition

      public static final PitchGrid.diatonicIntervals byScalePosition
      Takes the second diatonic pitch as a third, and the third as a fourth, not considering interval size.
  • Method Details

    • values

      public static PitchGrid.diatonicIntervals[] 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 PitchGrid.diatonicIntervals 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