@stringsync/vexml
Version:
MusicXML to Vexflow
20 lines (19 loc) • 525 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Forward = void 0;
/**
* Coordinates multiple voices in a single part.
*
* See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/forward/.
*/
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;
}
}
exports.Forward = Forward;