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

    Type Alias MotifOptions

    Options controlling generateMotif.

    type MotifOptions = {
        key: KeyScale;
        chord?: ChordData | null;
        bars: number;
        contour?: MotifContour;
        jitter?: number;
        seed?: number;
    }
    Index
    chord?: ChordData | null
    bars: number
    contour?: MotifContour

    Melodic contour shape the line follows.

    'arch'

    jitter?: number

    Probability in [0, 1] that a note is nudged by a single diatonic step. The nudge direction is balanced (up or down with equal odds), so it adds variety without biasing the line off its contour. Default 0, which reproduces the requested contour exactly (no drift, tails return to tonic).

    0
    
    seed?: number

    Seed for the deterministic PRNG.

    0