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

    Function double

    • Fill in the gaps of a figure, one note per gap.

      Doubling is what a player does when asked for more of the same rather than for something different: the added note sits halfway between two the figure already has, takes its predecessor's identity, and is played softer.

      Type Parameters

      Parameters

      • events: readonly T[]

        The figure, which need not be sorted.

      • spanSteps: number = BAR_STEPS

        Length of the figure in sixteenths.

      Returns T[]

      The figure with the midpoints filled, sorted by position.