Enum Class Pitch

java.lang.Object
java.lang.Enum<Pitch>
org.episteme.social.arts.music.Pitch
All Implemented Interfaces:
Serializable, Comparable<Pitch>, Constable

public enum Pitch extends Enum<Pitch>
Represents a musical pitch.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Enum Constant Details

    • C

      public static final Pitch C
    • C_SHARP

      public static final Pitch C_SHARP
    • D

      public static final Pitch D
    • D_SHARP

      public static final Pitch D_SHARP
    • E

      public static final Pitch E
    • F

      public static final Pitch F
    • F_SHARP

      public static final Pitch F_SHARP
    • G

      public static final Pitch G
    • G_SHARP

      public static final Pitch G_SHARP
    • A

      public static final Pitch A
    • A_SHARP

      public static final Pitch A_SHARP
    • B

      public static final Pitch B
  • Method Details

    • values

      public static Pitch[] 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 Pitch 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