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

    Type Alias StructuralCadence

    A cadence ranked by how much of the structure it closes.

    type StructuralCadence = {
        phraseIndex: number;
        atBeat: number;
        endBeat: number;
        cadence: CadenceResult;
        weight: number;
        rationale: string;
    }
    Index
    phraseIndex: number

    Index of the phrase this cadence closes, in the array it came from.

    atBeat: number

    The beat the cadence arrives on.

    endBeat: number

    The beat the phrase it closes ends at.

    cadence: CadenceResult

    The cadence itself.

    weight: number

    Structural weight in [0, 1]; Phrase.structuralWeight.

    rationale: string

    Why it weighs what it does.