@libraz/libcantus - v0.9.3
    Preparing search index...

    Type Alias GrooveTemplate

    A per-bar grid of timing and velocity deviations captured from a performance.

    type GrooveTemplate = {
        subdivision: number;
        slotsPerBar: number;
        slots: GrooveSlot[];
        ts?: TimeSignature;
    }
    Index
    subdivision: number

    Grid resolution: equal grid steps per quarter-note beat.

    slotsPerBar: number

    Number of grid slots per bar (beatsPerBar(ts) * subdivision).

    slots: GrooveSlot[]

    One entry per grid slot, in slot-index order (slot 0 is the downbeat).

    The time signature the template was extracted under. applyGrooveTemplate requires the apply-time meter to match this so the per-bar grid lines up instead of silently drifting. Optional for backward compatibility with templates constructed without it (in which case no check is performed).