Universal Music Theory Library - v0.12.0
    Preparing search index...

    Interface StreamEvent

    A single timed event in a MusicStream: onset, duration, notes, and velocity.

    interface StreamEvent {
        duration: number;
        notes: Note[];
        time: number;
        velocity: number;
    }
    Index

    Properties

    duration: number

    Length in beats.

    notes: Note[]

    Notes sounding together; empty for a rest.

    time: number

    Onset, in beats of the stream's time signature (its denominator's note value) from the start.

    velocity: number

    Loudness, normally 0 to 1 (default 0.8).