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

    Type Alias VoiceIndependenceReport

    How two lines move against each other, and how far apart they sit.

    type VoiceIndependenceReport = {
        motion: {
            contrary: number;
            oblique: number;
            similar: number;
            parallel: number;
        };
        rhythmicComplementarity: number;
        separation: { mean: number; min: number };
        crossings: number;
        longestPerfectRun: number;
        sounding: number;
    }
    Index
    motion: { contrary: number; oblique: number; similar: number; parallel: number }

    Share of the moves that fall into each motion type, summing to 1. A slot pair in which neither voice moves is not a move and is left out entirely, so an accompaniment that mostly sits still can still report mostly contrary motion. All four are 0 when nothing moves.

    Type Declaration

    • contrary: number

      The voices move in opposite directions.

    • oblique: number

      One voice holds while the other moves.

    • similar: number

      Both rise or both fall, and the interval between them changes.

    • parallel: number

      Both rise or both fall, keeping the same interval.

    rhythmicComplementarity: number

    Share of the slots where the lead holds or rests on which the counter attacks: 1 when the counter fills every gap the lead leaves, 0 when it moves only where the lead does. It is 0 when the lead never holds or rests, since there was nothing to complement.

    separation: { mean: number; min: number }

    Distance between the two lines, in semitones, over the slots where both sound.

    Type Declaration

    • mean: number

      Mean distance; 0 when the two lines never sound together.

    • min: number

      Closest approach; 0 when the two lines never sound together.

    crossings: number

    Slots at which the two lines sit in the opposite order to the one they keep overall. A unison is not a crossing.

    longestPerfectRun: number

    Longest run of consecutive slots sounding a perfect consonance.

    sounding: number

    Slots at which both lines sound, the denominator of separation.