Interface ScaleManager
- All Known Implementing Classes:
DefaultScaleManager
public interface ScaleManager
Manage StandardScale instances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScalestatic final StandardScale -
Method Summary
Modifier and TypeMethodDescriptionstatic ScaleManagerGet the implementation found in the global lookup, or if not found return the DefaultScaleManager instance.Compute the scale instances which match the specified chord symbol.default StandardScalegetStandardScale(String name) Get a standard scale by the name.A list of standard scales.
-
Field Details
-
AEOLIAN
-
ALTERED
-
BLUES
-
DIMINISHED_HALF_WHOLE
-
DIMINISHED_WHOLE_HALF
-
DORIAN
-
LOCRIAN
-
LYDIAN
-
LYDIAN_b7
-
MAJOR
-
MINOR_HARMONIC
-
MINOR_MELODIC
-
MIXOLYDIAN
-
PENTATONIC_MAJOR
-
PENTATONIC_MINOR
-
PHRYGIAN
-
WHOLE_TONE
-
-
Method Details
-
getDefault
Get the implementation found in the global lookup, or if not found return the DefaultScaleManager instance.- Returns:
-
getMatchingScales
Compute the scale instances which match the specified chord symbol.Test all standard scales based on cs root note. A scale matches if each chord note is a scale note.
Example: C7b5=C E Gb Bb, matching scales=ALTERED, LYDIAN_b7, WHOLE_TONE, DIMINISHED_HALF_WHOLE
Example: C7b9b5=C Db E Gb Bb, matching scales=ALTERED, DIMINISHED_HALF_WHOLE- Parameters:
cs-- Returns:
-
getStandardScales
List<StandardScale> getStandardScales()A list of standard scales.The first items must be in this order: MAJOR DORIAN PHRYGIAN LYDIAN MIXOLYDIAN AEOLIAN LOCRIAN MINOR_HARMONIC MINOR_MELODIC ALTERED LYDIAN_b7 DIMINISHED_WHOLE_HALF DIMINISHED_HALF_WHOLE WHOLE_TONE PENTATONIC_MAJOR PENTATONIC_MINOR BLUES
- Returns:
-
getStandardScale
Get a standard scale by the name.- Parameters:
name- Ignore case. Can be only the first letters of the name.- Returns:
- Can be null
-