Interface ScaleManager

All Known Implementing Classes:
DefaultScaleManager

public interface ScaleManager
Manage StandardScale instances.
  • Field Details

  • Method Details

    • getDefault

      static ScaleManager getDefault()
      Get the implementation found in the global lookup, or if not found return the DefaultScaleManager instance.
      Returns:
    • getMatchingScales

      List<StandardScaleInstance> getMatchingScales(ChordSymbol cs)
      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

      default StandardScale getStandardScale(String name)
      Get a standard scale by the name.
      Parameters:
      name - Ignore case. Can be only the first letters of the name.
      Returns:
      Can be null