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

    Function beatsPerBar

    • Length of a bar in quarter-note beats.

      Parameters

      • ts: MeterLike

        The time signature, in any form that names one; a meter map has no single bar length, so it is read as the signature it opens in. Ask beatsPerBarAt for the bar a given beat falls in.

      Returns number

      The bar length in quarter notes.

      import { beatsPerBar } from '@libraz/libcantus';
      beatsPerBar('6/8'); // 3