Function createScale

  • createScale is a function that generates a musical scale based on a root note and a series of chord intervals.

    Parameters

    • rootNoteNumber: number

      The root note number of the scale.

    • Rest ...chordIntervals: number[][]

      A rest parameter that accepts an array of arrays, each of which represents a chord interval. Each interval is added to the root note to generate a note of the scale.

    Returns number[]

    An array of note numbers representing the generated musical scale.

Generated using TypeDoc