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

    Type Alias NoteEventIndex

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

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

    Latest-onset note sounding at beat, with later input order winning ties.

    attacksAt: (beat: number) => boolean

    Whether one or more notes attack at beat.

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

    Unique attack beats strictly inside (startBeat, endBeat).