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

    Function parseTimeSignature

    • Parse a time signature such as "4/4" or "6/8".

      Parameters

      • text: string

        The signature text.

      Returns TimeSignature

      The parsed time signature.

      If the text is not n/d with positive integers.

      import { parseTimeSignature } from '@libraz/libcantus';
      parseTimeSignature('6/8'); // { numerator: 6, denominator: 8 }