OpenSheetMusicDisplay
    Preparing search index...

    Class TabFretTransposer

    Gives the tablature notes of a transposed sheet the frets of their transposed pitches (TabNote.TransposedFretNumber). A note stays on its string, so the fingering the XML gives moves along the fretboard as a whole: transposed 3 halftones up, a D major chord on frets 2-3-2 is an F major chord on frets 5-6-5, and a slide from fret 3 to 5 goes from fret 6 to 8.

    Only a note that leaves the fretboard on its string (below fret 0 or above EngravingRules.TabTransposeMaxFret) moves to the nearest string that it fits on and that no other note at its time is on, together with the notes it's connected to by a tie, hammer-on, pull-off or slide. A note that fits on no string (e.g. below the lowest open string) stays on its string an octave higher or lower.

    Index
    • Sets the transposed fret and string of all tablature notes, or removes them if their instrument isn't transposed.

      Parameters

      • sheet: MusicSheet
      • transposing: boolean

        whether the sheet's notes are transposed at all: whether a transpose calculator is set

      • maxFret: number

        the highest fret of the fretboard

      Returns void