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

    Type Alias PlannedPhrase

    One planned phrase: its span, the section it opens in, the cadence and melodic shape it targets, and the motifs it carries.

    type PlannedPhrase = {
        startBeat: number;
        endBeat: number;
        section: number | null;
        cadence: CadenceType | null;
        shape: MelodicContourShape;
        peakPosition: number;
        register: { low: number; high: number; mean: number };
        onsetDensity: number;
        motifs: number[];
    }
    Index
    startBeat: number

    First beat of the phrase.

    endBeat: number

    End of the phrase, exclusive.

    section: number | null

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

    cadence: CadenceType | null

    The cadence the phrase is to end on, or null for none.

    The phrase's targeted melodic shape.

    peakPosition: number

    Onset of the phrase's targeted peak, as a fraction of the phrase's length, in [0, 1].

    register: { low: number; high: number; mean: number }

    The phrase's targeted pitch range and mean, as absolute MIDI pitches.

    onsetDensity: number

    Targeted onsets per bar within the phrase; see RhythmAnalysis.onsetDensity.

    motifs: number[]

    Indices into plan.motifs of every motif statement placed in this phrase.