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

    Type Alias CompositionEvaluation

    How a candidate melody measures up against its plan: violations that judge it, and a fit reading per structural dimension.

    There is no aggregate: the fields never fold into one score, the same way ReferenceComparison does not.

    type CompositionEvaluation = {
        violations: CompositionViolation[];
        fit: {
            contour: number | null;
            register: number | null;
            onset: number | null;
            duration: number | null;
            syncopation: number | null;
            density: number | null;
        };
    }
    Index
    violations: CompositionViolation[]

    Concrete departures from the plan, error and warning alike.

    fit: {
        contour: number | null;
        register: number | null;
        onset: number | null;
        duration: number | null;
        syncopation: number | null;
        density: number | null;
    }

    Likeness of the candidate to the plan, one field per dimension, each phrase read over its planned span.

    Type Declaration

    • contour: number | null

      Likeness of the phrases' melodic outlines to their planned shapes.

    • register: number | null

      Likeness of the phrases' registers to the planned ones.

    • onset: number | null

      Likeness of where the melody's onsets fall.

    • duration: number | null

      Likeness of the melody's inter-onset-interval distribution.

    • syncopation: number | null

      Likeness of the melody's syncopation.

    • density: number | null

      Likeness of the melody's onsets per bar to the phrases' planned densities.