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

    Type Alias MelodicContour

    The abstract shape of a line: its step directions and what they add up to.

    type MelodicContour = {
        directions: ContourDirection[];
        shape: MelodicContourShape;
        peakIndex: number;
        troughIndex: number;
        range: number;
        rationale: string;
    }
    Index
    directions: ContourDirection[]

    One direction per adjacent pair of notes, in time order.

    What the directions add up to.

    peakIndex: number

    Index of the highest note; ties keep the earliest, and -1 for a line with no notes.

    troughIndex: number

    Index of the lowest note; ties keep the earliest, and -1 for a line with no notes.

    range: number

    Semitone distance from the lowest note to the highest.

    rationale: string

    Why the line was given that shape.