UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

24 lines (23 loc) 855 B
import * as rendering from '../rendering'; import { Config } from '../config'; import { Rect } from '../spatial'; import { Logger } from '../debug'; import { VoiceEntry } from './types'; import { Fraction } from '../util'; export declare class Voice { private config; private log; private document; private voiceRender; private entries; private constructor(); static create(config: Config, log: Logger, document: rendering.Document, voiceRender: rendering.VoiceRender): Voice; /** The name of the element, which can be used as a type discriminant. */ readonly name = "voice"; /** Returns the bounding box of the element. */ rect(): Rect; /** Returns the entries of the voice. */ getEntries(): VoiceEntry[]; /** Returns the start measure beat for the voice. */ getStartMeasureBeat(): Fraction; }