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

    Type Alias Hypermeter

    A bar grouping inferred from the music.

    type Hypermeter = {
        groupBars: number;
        downbeats: number[];
        confidence: number;
        rationale: string;
    }
    Index
    groupBars: number

    Bars per hyperbar. Falls back to the span's own bar count when the span is too short to hold two of any candidate grouping.

    downbeats: number[]

    Absolute beat of each hypermetric downbeat inside the analysed span, in time order. A pickup bar is not a group head, so the first entry is the first full bar that starts a group.

    confidence: number

    How much the music supports the grouping, in [0, 1]: how strongly harmonic change and cadences prefer these bars over the others, discounted when the runner-up grouping explains the music nearly as well.

    rationale: string

    Why this grouping was chosen.