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

    Function exceedsSpacing

    • Whether two adjacent upper voices are spaced more than a maximum apart (commonly an octave). Bass-to-tenor spacing is conventionally exempt, so this is meant for the upper voice pairs.

      Parameters

      • upperPitch: number

        Pitch of the higher voice.

      • lowerPitch: number

        Pitch of the lower voice.

      • maxSemitones: number = 12

        Maximum allowed spacing in semitones (default an octave).

      Returns boolean