@stringsync/vexml
Version:
MusicXML to Vexflow
16 lines (15 loc) • 397 B
JavaScript
/**
* The `<tap>` element indicates a tap on the fretboard.
*
* See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/technical/
*/
export class Tap {
element;
constructor(element) {
this.element = element;
}
/** Returns the symbol for the tap. Defaults to 'T'. */
getSymbol() {
return this.element.content().withDefault('T').str();
}
}