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

    Type Alias NoteEvent

    A single sounding note on a beat-indexed timeline: an absolute MIDI pitch, an onset and duration measured in quarter-note beats, and an optional MIDI velocity. This is the library-wide interchange shape for note events read from or written to a DAW/MIDI track; the harmonizer's MelodyNote and the analysis VoiceNote are specializations of it.

    type NoteEvent = {
        pitch: number;
        startBeat: number;
        durationBeat: number;
        velocity?: number;
    }
    Index
    pitch: number

    MIDI pitch (middle C = 60).

    startBeat: number

    Onset in quarter-note beats, absolute from the start of the timeline.

    durationBeat: number

    Duration in quarter-note beats.

    velocity?: number

    MIDI velocity in [0, 127], when known.