@stringsync/vexml
Version:
MusicXML to Vexflow
18 lines (17 loc) • 564 B
JavaScript
import { ABOVE_BELOW } from './enums';
/**
* The `<down-bow>` element represents the symbol that is used both for down-bowing on bowed instruments, and
* down-stroke on plucked instruments.
*
* See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/down-bow/
*/
export class DownBow {
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);
}
}