UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

23 lines (22 loc) 708 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TabString = void 0; /** * 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/ */ class TabString { element; constructor(element) { this.element = element; } /** Returns the number of the string. */ getNumber() { return this.element.content().int(); } } exports.TabString = TabString;