UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

22 lines (21 loc) 731 B
import { NamedElement } from '../util'; import { TimeSymbol } from './enums'; /** * Time represents a time signature element. * * See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/time/ */ export declare class Time { private element; constructor(element: NamedElement<'time'>); /** Returns the stave number this time belongs to. Defaults to null. */ getStaveNumber(): number | null; /** Returns the beats of the time. */ getBeats(): string[]; /** Returns the beat types of the time. */ getBeatTypes(): string[]; /** Returns whether the time signature is hidden. */ isHidden(): boolean; /** Returns the symbol of the time. */ getSymbol(): TimeSymbol | null; }