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

    Type Alias ReferencePhraseMelody

    How a melodic line reads within one phrase.

    type ReferencePhraseMelody = {
        shape: MelodicContourShape;
        low: number;
        high: number;
        mean: number;
        peakPitch: number;
        peakPosition: number;
        outline: number[];
        onsetDensity: number;
        restRatio: number;
    }
    Index

    The phrase's overall shape.

    low: number

    Lowest pitch sounding in the phrase.

    high: number

    Highest pitch sounding in the phrase.

    mean: number

    Duration-weighted mean pitch, truncated to the phrase's span.

    peakPitch: number

    Pitch of the phrase's highest note (the first, when several tie).

    peakPosition: number

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

    outline: number[]

    Eight sampled points across the phrase, each the sounding pitch at that point minus the piece's overall melodic mean, in semitones.

    onsetDensity: number

    Onsets per bar within the phrase; see RhythmAnalysis.onsetDensity.

    restRatio: number

    Share of the phrase during which nothing sounds.