@stringsync/vexml
Version:
MusicXML to Vexflow
16 lines (15 loc) • 402 B
JavaScript
/**
* Coordinates multiple voices in a single part.
*
* See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/forward/.
*/
export class Forward {
element;
constructor(element) {
this.element = element;
}
/** Returns the duration of the backup. Defaults to 4 */
getDuration() {
return this.element.first('duration')?.content().int() ?? 4;
}
}