@stringsync/vexml
Version:
MusicXML to Vexflow
17 lines (16 loc) • 476 B
JavaScript
/**
* The `<pluck>` element is used to specify the plucking fingering on a fretted instrument, where the fingering element
* refers to the fretting fingering.
*
* See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/pluck/
*/
export class Pluck {
element;
constructor(element) {
this.element = element;
}
/** Returns the plucking finger. Defaults to null. */
getFinger() {
return this.element.content().str();
}
}