@libraz/libcantus - v0.9.3
    Preparing search index...

    Function isForbiddenMelodicLeap

    • Whether a melodic move is a forbidden leap: a tritone, either seventh (minor or major), or any leap wider than an octave.

      Operates on the raw absolute distance, so compound leaps are not reduced to their simple class before the octave check.

      Parameters

      • prev: number

        Starting pitch.

      • cur: number

        Ending pitch.

      Returns boolean

      True when the leap is forbidden in strict counterpoint.