Parse a time signature such as "4/4" or "6/8".
"4/4"
"6/8"
The signature text.
The parsed time signature.
If the text is not n/d with positive integers.
n/d
import { parseTimeSignature } from '@libraz/libcantus';parseTimeSignature('6/8'); // { numerator: 6, denominator: 8 } Copy
import { parseTimeSignature } from '@libraz/libcantus';parseTimeSignature('6/8'); // { numerator: 6, denominator: 8 }
Parse a time signature such as
"4/4"or"6/8".