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

    Type Alias PreserveWeights

    How much of each structural dimension of a reference a derived plan keeps, each in [0, 1]; an omitted weight is 1.

    type PreserveWeights = {
        form?: number;
        phraseLengths?: number;
        harmonicFunction?: number;
        harmonicRhythm?: number;
        motifRelations?: number;
        registerShape?: number;
        rhythm?: number;
    }
    Index
    form?: number

    Section labels; a replaced section takes its neighbour's label.

    phraseLengths?: number

    Phrase lengths; a replaced phrase is rounded to a power-of-two bar count.

    harmonicFunction?: number

    Structural chords; a replaced chord is another numeral of the same function.

    harmonicRhythm?: number

    Where the chords change, interpolated toward one change per bar line.

    motifRelations?: number

    Motif derivations; a replaced derivation becomes a variation of the same source.

    registerShape?: number

    Phrase contour, peak and register, interpolated toward a neutral arch.

    rhythm?: number

    Each root's onset gaps, kept per root by a positional draw, and the onset placement, interpolated toward a level-proportional distribution without syncopation.