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

    Function createsVoiceOverlap

    • Whether two voices overlap: the upper voice descends below where the lower voice just was, or the lower voice rises above where the upper voice just was. Distinct from a simultaneous voice crossing.

      Parameters

      • upperPrev: NoteData

        Previous note of the upper voice.

      • upperCur: NoteData

        Current note of the upper voice.

      • lowerPrev: NoteData

        Previous note of the lower voice.

      • lowerCur: NoteData

        Current note of the lower voice.

      Returns boolean

    • Whether two voices overlap: the upper voice descends below where the lower voice just was, or the lower voice rises above where the upper voice just was. Distinct from a simultaneous voice crossing.

      Parameters

      • upperPrev: number

        Previous note of the upper voice.

      • upperCur: number

        Current note of the upper voice.

      • lowerPrev: number

        Previous note of the lower voice.

      • lowerCur: number

        Current note of the lower voice.

      Returns boolean