@stringsync/vexml
Version:
MusicXML to Vexflow
21 lines (20 loc) • 576 B
JavaScript
import { START_STOP } from './enums';
/**
* The `<pull-off>` element is used in guitar and fretted instrument notation.
*
* See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/pull-off/
*/
export class PullOff {
element;
constructor(element) {
this.element = element;
}
/** Returns the number of the pull-off. Defaults to null;. */
getNumber() {
return this.element.attr('number').int();
}
/** Returns the type of pull-off. */
getType() {
return this.element.attr('type').enum(START_STOP);
}
}