UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

19 lines (18 loc) 579 B
/** * The `<string>` element is used with tablature notation, regular notation (where it is often circled), and chord * diagrams. String numbers start with 1 for the highest pitched full-length string. * * NOTE: TabString is used to not conflict with the String type. * * See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/string/ */ export class TabString { element; constructor(element) { this.element = element; } /** Returns the number of the string. */ getNumber() { return this.element.content().int(); } }