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

    Function createNoteEventIndex

    • Validate and stable-sort note events once, then expose logarithmic onset and active-note lookups. Non-positive-duration notes may be retained for callers that intentionally filter them later, but never count as sounding.

      Parameters

      • events: NoteEvent[]
      • options: { allowNonPositiveDuration?: boolean } = {}

      Returns NoteEventIndex