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

    Type Alias FormSection

    A span of music labelled by which earlier span it restates.

    type FormSection = {
        label: string;
        startBeat: number;
        endBeat: number;
        bars: number;
        firstOccurrence: number;
        similarity: number;
        rationale: string;
    }
    Index
    label: string

    The section's letter, assigned in order of first appearance: the opening material is A, the first material unlike it is B, and a later restatement of A is A again. Past Z the letters double (AA, AB), the way spreadsheet columns do. No functional name — verse, chorus, bridge — is ever inferred.

    startBeat: number

    First beat of the section; negative when it opens with a pickup.

    endBeat: number

    End of the section, exclusive.

    bars: number

    The section's length in bars.

    firstOccurrence: number

    Index, in the returned array, of the first section carrying this label; the section's own index when it is that first appearance.

    similarity: number

    How alike this section and its first occurrence are, in [0, 1]; 1 on the first occurrence itself. The mean over the units the section was merged from, each scored against the unit it matched.

    rationale: string

    How the section came to carry its label.