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

    Type Alias MotifGenerateOptions

    How a motif is generated: what MotifOptions asks for, with the key and the chord taken the way the rest of the class API takes them.

    type MotifGenerateOptions = {
        key: KeyLike;
        chord?: ChordLike | null;
        bars: number;
        ts?: MeterLike;
        contour?: MotifContour;
        jitter?: number;
        ctx?: GenerationContextInput;
    }
    Index
    key: KeyLike

    The key the line is written in: a name, plain key data, or a Key.

    chord?: ChordLike | null

    The chord the downbeats spell out, when the line is written over one: a chord symbol, plain chord data, or a Chord. Without it no note is pulled to a chord tone.

    bars: number

    Length of the motif in bars of ts.

    Meter the bars are counted in, which sets the bar length, in any form that names one.

    4/4
    
    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; sugar for the context's complexity.ornament, which wins where both are given.

    0
    

    The generation context. Its complexity.ornament is the jitter and its seed fixes which notes are nudged.

    { seed: 0 }