midiReference
Enum ScaleReference

java.lang.Object
  extended by java.lang.Enum<ScaleReference>
      extended by midiReference.ScaleReference
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ScaleReference>

public enum ScaleReference
extends java.lang.Enum<ScaleReference>

Enum class providing access to scales based on chromatic degree reference.

Author:
gmuller

Enum Constant Summary
AEOLIAN
          Scale Degrees {1, 2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 10}
BLUES
          Scale Degrees {1, 2, b3, 3, 4, 5, 6, b7, 7} Midi Note Numbers {0, 2, 3, 4, 5, 7, 9, 10, 11}
CHROMATIC
          Scale Degrees {1, b2, 2, b3, 3, 4, #4, 5, b6, 6, b7, 7} Midi Note Numbers {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
DIATONIC_MINOR
          Scale Degrees {1, 2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 10}
DORIAN
          Scale Degrees {1, 2, b3, 4, 5, 6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 9, 10}
HARMONIC_MINOR
          Scale Degrees {1, 2, b3, 4, 5, b6, 7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 11}
INDIAN
          Scale Degrees {1, b2, b2, 3, 4, #5, b7} Midi Note Numbers {0, 1, 1, 4, 5, 8, 10}
LOCRIAN
          Scale Degrees {1, b2, b3, 4, b5, b6, b7} Midi Note Numbers {0, 1, 3, 5, 6, 8, 10}
LYDIAN
          Scale Degrees {1, 2, 3, #4, 5, 6, b7} Midi Note Numbers {0, 2, 4, 6, 7, 9, 10}
MAJOR
          Scale Degrees {1, 2, 3, 4, 5, 6, 7} Midi Note Numbers {0, 2, 4, 5, 7, 9, 11}
MELODIC_MINOR
          Scale Degrees {1, 2, b3, 4, 5, b6, 6, b7, 7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 9, 10, 11}
MINOR
          Scale Degrees {1, 2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 10}
MIXOLYDIAN
          Scale Degrees {1, 2, 3, 4, 5, 6, b7} Midi Note Numbers {0, 2, 4, 5, 7, 9, 10}
NATURAL_MINOR
          Scale Degrees {1, 2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 10}
PENTATONIC
          Scale Degrees {1, 2, 3, 5, 6} Midi Note Numbers {0, 2, 4, 7, 9}
PHRYGIAN
          Scale Degrees {1, b2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 1, 3, 5, 7, 8, 10}
TURKISH
          Scale Degrees {1, b2, b3, 4, 5, b7, 7} Midi Note Numbers {0, 1, 3, 5, 7, 10, 11}
 
Method Summary
 int[] getDegrees()
          Gets the integer array containing the scale degrees of the scale.
static ScaleReference valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ScaleReference[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CHROMATIC

public static final ScaleReference CHROMATIC
Scale Degrees {1, b2, 2, b3, 3, 4, #4, 5, b6, 6, b7, 7} Midi Note Numbers {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}


MAJOR

public static final ScaleReference MAJOR
Scale Degrees {1, 2, 3, 4, 5, 6, 7} Midi Note Numbers {0, 2, 4, 5, 7, 9, 11}


MINOR

public static final ScaleReference MINOR
Scale Degrees {1, 2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 10}


HARMONIC_MINOR

public static final ScaleReference HARMONIC_MINOR
Scale Degrees {1, 2, b3, 4, 5, b6, 7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 11}


MELODIC_MINOR

public static final ScaleReference MELODIC_MINOR
Scale Degrees {1, 2, b3, 4, 5, b6, 6, b7, 7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 9, 10, 11}


NATURAL_MINOR

public static final ScaleReference NATURAL_MINOR
Scale Degrees {1, 2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 10}


DIATONIC_MINOR

public static final ScaleReference DIATONIC_MINOR
Scale Degrees {1, 2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 10}


AEOLIAN

public static final ScaleReference AEOLIAN
Scale Degrees {1, 2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 8, 10}


PHRYGIAN

public static final ScaleReference PHRYGIAN
Scale Degrees {1, b2, b3, 4, 5, b6, b7} Midi Note Numbers {0, 1, 3, 5, 7, 8, 10}


LOCRIAN

public static final ScaleReference LOCRIAN
Scale Degrees {1, b2, b3, 4, b5, b6, b7} Midi Note Numbers {0, 1, 3, 5, 6, 8, 10}


DORIAN

public static final ScaleReference DORIAN
Scale Degrees {1, 2, b3, 4, 5, 6, b7} Midi Note Numbers {0, 2, 3, 5, 7, 9, 10}


LYDIAN

public static final ScaleReference LYDIAN
Scale Degrees {1, 2, 3, #4, 5, 6, b7} Midi Note Numbers {0, 2, 4, 6, 7, 9, 10}


MIXOLYDIAN

public static final ScaleReference MIXOLYDIAN
Scale Degrees {1, 2, 3, 4, 5, 6, b7} Midi Note Numbers {0, 2, 4, 5, 7, 9, 10}


PENTATONIC

public static final ScaleReference PENTATONIC
Scale Degrees {1, 2, 3, 5, 6} Midi Note Numbers {0, 2, 4, 7, 9}


BLUES

public static final ScaleReference BLUES
Scale Degrees {1, 2, b3, 3, 4, 5, 6, b7, 7} Midi Note Numbers {0, 2, 3, 4, 5, 7, 9, 10, 11}


TURKISH

public static final ScaleReference TURKISH
Scale Degrees {1, b2, b3, 4, 5, b7, 7} Midi Note Numbers {0, 1, 3, 5, 7, 10, 11}


INDIAN

public static final ScaleReference INDIAN
Scale Degrees {1, b2, b2, 3, 4, #5, b7} Midi Note Numbers {0, 1, 1, 4, 5, 8, 10}

Method Detail

values

public static final ScaleReference[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ScaleReference c : ScaleReference.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ScaleReference valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getDegrees

public int[] getDegrees()
Gets the integer array containing the scale degrees of the scale. For instance, at any octave let the base note of the scale equal 0, the degrees for a major scale would then be {0, 2, 4, 5, 7, 9, 11}

Returns:
int array containing the degrees between 0 - 12 representing the scale