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

    Type Alias ReferencePhrase

    One phrase: its span, the section it opens in, how it cadences, and the melodic and motivic content within it.

    type ReferencePhrase = {
        startBeat: number;
        endBeat: number;
        bars: number;
        section: number | null;
        confidence: number;
        cadence: ReferenceCadence | null;
        melody: ReferencePhraseMelody | null;
        motifNodes: number[];
    }
    Index
    startBeat: number

    First beat of the phrase.

    endBeat: number

    End of the phrase, exclusive.

    bars: number

    The phrase's length in bars.

    section: number | null

    Index into form.sections of the section this phrase's start beat falls in.

    confidence: number

    Confidence of the phrase boundary, in [0, 1].

    cadence: ReferenceCadence | null

    The cadence the phrase ends on, or null when it closes on none.

    melody: ReferencePhraseMelody | null

    The phrase's melodic descriptors, or null when fewer than two notes sound within it.

    motifNodes: number[]

    Indices into melody.graph.nodes of every motif statement that starts within this phrase.