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

    Type Alias BarPosition

    A position expressed as a bar index and a quarter-note offset within the bar.

    type BarPosition = {
        bar: number;
        beat: number;
    }
    Index
    bar: number

    0-based bar index, counting the first full bar as 0. formatBarPosition renders it 1-based. A pickup sounds before that bar, so its notes report bar -1.

    beat: number

    Quarter-note offset from the start of the bar — not the felt beat. In 6/8 the second felt beat is at beat: 1.5; barPositionToPulse converts to felt-beat numbering.