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

    Type Alias OrnamentOptions

    Options controlling ornament.

    type OrnamentOptions = {
        style?: OrnamentStyle;
        amount?: number;
        ts?: MeterLike;
        ctx?: GenerationContextInput;
    }
    Index

    The ornament to apply.

    'ghost'

    amount?: number

    How much of the eligible material is decorated, in [0, 1]. Raising it only ornaments more notes; the notes already ornamented keep the ornament they had. Defaults to complexity.ornament from the context, or 0.5.

    Time signature, in any form that names one, used to tell strong positions from weak ones.

    4/4
    

    The generation context. Its complexity.ornament sets the amount, its complexity.difficulty — with a tempo — keeps ornaments off passages too fast to play them in, and its seed fixes which notes are decorated.

    { seed: 0 }