UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

17 lines (16 loc) 452 B
/** * 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/ */ export class Fret { element; constructor(element) { this.element = element; } /** Returns the number of the fret. */ getNumber() { return this.element.content().int(); } }