Function degrees

  • Returns a function to get a note name from the scale degree.

    Parameters

    Returns ((degree) => string)

      • (degree): string
      • Parameters

        • degree: number

        Returns string

    Example

    [1, 2, 3].map(Scale.degrees("C major")) => ["C", "D", "E"]
    [1, 2, 3].map(Scale.degrees("C4 major")) => ["C4", "D4", "E4"]