Universal Music Theory Library - v0.12.0
    Preparing search index...

    Function getFretboardScalePositions

    • Returns scale position "boxes" — windows of adjacent frets covering the scale. Each box is a FretboardScaleResult limited to a windowSize-fret span, plus open strings. These are fret windows, one per starting fret, not taught positions: for CAGED shapes and three-notes-per-string patterns use getFretboardScaleShapes.

      Parameters

      • scale: Scale

        The scale to map.

      • tuning: readonly number[]

        Open string steps from A4, low→high, in steps of the scale's tuning (one fret per step). The exported presets are 12-TET: for a scale of another tuning on a 12-TET instrument, pass scale.retune(TET12).

      • Optionaloptions: FretboardVoicingOptions

        maxFret (default 12), windowSize (default 4).

      Returns FretboardScaleResult[]

      Array of position boxes ordered by starting fret, each with at least one note.