|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.util.scale.ScaleFactory
public final class ScaleFactory
Scale factory. This ininstanciable class is only a set of convenience methods to create various common musical scales.
Field Summary | |
---|---|
static java.util.Comparator<Scale> |
INTERVAL_SUM_COMPARATOR
A comparator for scales that will sort scales by interval sum. |
static java.util.Comparator<Scale> |
NAME_COMPARATOR
A comparator for scales that will sort scales alphabetically. |
static java.util.Comparator<Scale> |
NOTES_NUMBER_IN_OCTAVE_COMPARATOR
A comparator for scales that will sort scales by notes number in octave. |
Method Summary | |
---|---|
static Scale |
createAeolianScale()
Returns an aeolian scale. |
static Scale |
createBluesPentatonicScale()
Returns a blues pentatonic scale. |
static Scale |
createBluesScale()
Returns a blues scale. |
static Scale |
createDiatonicScale()
Returns a diatonic scale. |
static Scale |
createDorianScale()
Returns a dorian scale. |
static Scale |
createHarmonicMinorScale()
Returns a harmonic minor scale. |
static Scale |
createIonianScale()
Returns an ionian scale. |
static Scale |
createLocrianScale()
Returns a locrian scale. |
static Scale |
createLydianScale()
Returns a lydian scale. |
static Scale |
createMajorPentatonicScale()
Returns a major pentatonic scale. |
static Scale |
createMajorScale()
Returns a major scale. |
static Scale |
createMelodicMinorScale()
Returns a melodic minor scale. |
static Scale |
createMinorPentatonicScale()
Returns a minor pentatonic scale. |
static Scale |
createMinorScale()
Returns a minor scale. |
static Scale |
createMixolydianScale()
Returns a mixolydian scale. |
static Scale |
createPhrygianScale()
Returns a phrygian scale. |
static Scale[] |
getAllScales()
Returns an array of all existing scales sorted in an arbitrary order. |
static Scale[] |
getAllScales(java.util.Comparator<? super Scale>... comparators)
Returns a sorted array of all existing scales. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.Comparator<Scale> NAME_COMPARATOR
public static final java.util.Comparator<Scale> NOTES_NUMBER_IN_OCTAVE_COMPARATOR
public static final java.util.Comparator<Scale> INTERVAL_SUM_COMPARATOR
Method Detail |
---|
public static Scale createMajorScale()
public static Scale createMinorScale()
public static Scale createHarmonicMinorScale()
public static Scale createMelodicMinorScale()
public static Scale createMajorPentatonicScale()
public static Scale createMinorPentatonicScale()
public static Scale createBluesPentatonicScale()
public static Scale createIonianScale()
public static Scale createAeolianScale()
public static Scale createDorianScale()
public static Scale createMixolydianScale()
public static Scale createPhrygianScale()
public static Scale createLydianScale()
public static Scale createLocrianScale()
public static Scale createBluesScale()
public static Scale createDiatonicScale()
public static Scale[] getAllScales()
public static Scale[] getAllScales(java.util.Comparator<? super Scale>... comparators)
comparators
- Comparators of scales that will sort scales
in the returned array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |