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

    Type Alias NoteEventAssertOptions

    How strictly assertNoteEvent and assertNoteEvents read an event array.

    type NoteEventAssertOptions = {
        allowNonPositiveDuration?: boolean;
        budget?: number;
        minStartBeat?: number;
    }
    Index
    allowNonPositiveDuration?: boolean

    Accept notes that never sound. The analysis side does, so an array from a MIDI import can be validated before the zero-length artefacts are dropped.

    budget?: number

    Upper bound on the event count; defaults to the generation budget.

    minStartBeat?: number

    Earliest accepted onset. Onsets are unbounded below by default, because a pickup sounds before the downbeat and the downbeat is beat 0; pass -pickupBeats to reject a note starting earlier than the pickup a caller has declared.

    -Number.MAX_SAFE_INTEGER