@stringsync/vexml
Version:
MusicXML to Vexflow
18 lines (17 loc) • 554 B
JavaScript
import { ABOVE_BELOW } from './enums';
/**
* The `<up-bow>` element represents the symbol that is used both for up-bowing on bowed instruments, and up-stroke on
* plucked instruments.
*
* See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/up-bow/
*/
export class UpBow {
element;
constructor(element) {
this.element = element;
}
/** Returns the placement of the upbow. Defaults to above. */
getPlacement() {
return this.element.attr('placement').withDefault('above').enum(ABOVE_BELOW);
}
}