@stringsync/vexml
Version:
MusicXML to Vexflow
21 lines (20 loc) • 566 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Fret = void 0;
/**
* The `<fret>` element is used with tablature notation and chord diagrams. Fret numbers start with 0 for an open string
* and 1 for the first fret.
*
* See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/fret/
*/
class Fret {
element;
constructor(element) {
this.element = element;
}
/** Returns the number of the fret. */
getNumber() {
return this.element.content().int();
}
}
exports.Fret = Fret;