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

    Type Alias NoteEventIndex

    Binary-searchable, stable-sorted index over note onsets and active spans.

    type NoteEventIndex = {
        notes: readonly IndexedNoteEvent[];
        at: (beat: number) => IndexedNoteEvent | undefined;
        attacksAt: (beat: number) => boolean;
        onsetsBetween: (startBeat: number, endBeat: number) => number[];
    }
    Index
    notes: readonly IndexedNoteEvent[]
    at: (beat: number) => IndexedNoteEvent | undefined

    Latest-onset note sounding at beat. Simultaneous onsets are resolved by the index's OnsetTieBreak.

    If beat is not finite.

    attacksAt: (beat: number) => boolean

    Whether one or more sounding notes attack at beat.

    If beat is not finite.

    onsetsBetween: (startBeat: number, endBeat: number) => number[]

    Unique sounding-note attack beats strictly inside (startBeat, endBeat).

    If either bound is not finite.