mwg API
    Preparing search index...

    Interface HumanizationOptions

    interface HumanizationOptions {
        grooveTemplate?: GrooveTemplate;
        intensity: number;
        onWarn?: (message: string) => void;
        seed?: number;
        style?: HumanizeStyle;
        timingVarianceMs?: number;
        velocityVariance?: number;
    }

    Hierarchy (View Summary)

    Index
    grooveTemplate?: GrooveTemplate

    per-slot deviations to replay; only GrooveHumanizer applies one

    intensity: number

    0 to 1: how much of the template and the noise to apply; 0 returns the file unchanged

    onWarn?: (message: string) => void

    Reports what a request needs saying out loud - today, a template whose tempo is far from the file's. Defaults to console.warn, so the signal is never silent by default.

    seed?: number

    makes the noise reproducible; left out, the result differs on every call

    scales the two spreads: jazz runs looser, classical tighter (default: no scaling)

    timingVarianceMs?: number

    standard deviation of the per-note timing noise, in milliseconds (default 8)

    velocityVariance?: number

    standard deviation of the per-note velocity noise, in MIDI velocity units (default 10)