Function getRootNotes

  • getRootNotes is a function that extracts the root notes from a series of scales.

    Parameters

    • scales: number[][]

      An array of scales. Each scale is represented as an array of note numbers.

    Returns number[]

    An array of root note numbers, one from each provided scale. The root note of a scale is the first note in its array.

Generated using TypeDoc