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

    Type Alias HumanizeOptions

    Options controlling humanize.

    type HumanizeOptions = {
        ts?: MeterLike;
        timing?: number;
        velocity?: number;
        accent?: number;
        baseVelocity?: number;
        ctx?: GenerationContextInput;
        part?: string;
    }
    Index

    Time signature used to derive metric accents, in any form that names one.

    4/4
    
    timing?: number

    Maximum timing jitter in quarter-note beats, applied as ±this value.

    0.02
    
    velocity?: number

    Maximum velocity jitter (MIDI units), applied as ±this value.

    8
    
    accent?: number

    How much louder strong beats get relative to weak ones, in MIDI velocity units.

    12
    
    baseVelocity?: number

    Velocity assumed for events with no velocity of their own.

    80
    

    The generation context, so one project seed covers this call as well as the generators that wrote the notes. Its seed fixes the jitter, so the same seed always humanizes the same way.

    { seed: 0 }

    part?: string

    The name this call draws under. Humanizing two parts from one context with the same name gives notes at the same position and pitch the same jitter, which is what a doubled line does not want; naming each part keeps them independent.

    'humanize'