@libraz/libcantus - v1.1.0
    Preparing search index...

    Function sustainsShift

    • Whether the fretting hand covers a leap in the time available.

      Parameters

      • semitones: number

        Distance moved; on a fretted neck one fret is one semitone.

      • stepBeats: number

        Time to move it in, in quarter-note beats.

      • bpm: number | undefined

        Tempo, or undefined when the caller gave none.

      • difficulty: number | undefined

        The ceiling, or undefined for no ceiling.

      Returns boolean

      True when the shift is inside the ceiling, and whenever either the ceiling or the tempo is unknown.