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

    Function doubleTime

    • Compress a figure to half its length and play it twice.

      The repeat is what makes this the mirror of halfTime rather than a figure with a hole in it: the bar stays full.

      Halving brings positions together, and two onsets of one stream landing on the same step are one stroke played louder rather than two: a drum struck twice at the same instant is a pair of note-ons a reader turns into a hung or cut note, so the pair is merged and the louder of the two is what sounds. Streams stay apart, since two limbs striking together is a chord and not a repeat.

      Type Parameters

      Parameters

      • events: readonly T[]

        The figure.

      • spanSteps: number = BAR_STEPS

        Length of the figure in sixteenths.

      Returns T[]

      The compressed figure, repeated to fill the span, at most one event per stream and step.