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

    Function onsetWeightCurve

    • Map a metric weight (0–3 from metricWeight) to a base onset probability before density scaling. Strong positions are much more likely to carry an onset than weak ones; the curve is intentionally small and explicit so its behavior is easy to inspect and test.

      Parameters

      • weight: number

        The metric weight, 0 (off-pulse) to 3 (downbeat).

      Returns number

      A base onset probability in [0, 1].