@tonalis/music-dsl
    Preparing search index...

    Function scalePitches

    • Return the MIDI pitches for a named scale starting at keyRoot in octave. Always appends the octave note as the final pitch.

      IMPORTANT: Uses BigInt arithmetic throughout — the 36-bit Scales values exceed 32-bit JS bitwise operator range. All >> and & operations use BigInt.

      Parameters

      • keyRoot: string
      • scale: string
      • octave: number

      Returns number[]