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

    Function pulsesPerBar

    • Number of main pulses (felt beats) per bar: the numerator for simple meters, a third of it for compound meters.

      For additive/irregular meters such as 7/8 or 5/8 this counts the raw pulses (7 and 5 respectively), which are otherwise felt as flat, evenly divided and equally accented pulses. To recover a 2+2+3 or 3+2 felt-beat grouping, set TimeSignature.grouping; metricWeight then accents each group's head pulse.

      Parameters

      Returns number

      The pulse count per bar.