UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

20 lines (19 loc) 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Tremolo = void 0; /** * The `<tremolo>` element can be used to indicate single-note, double-note, or unmeasured tremolos. * * See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/tremolo/ */ class Tremolo { element; constructor(element) { this.element = element; } /** Returns the number of tremolo marks. Defaults to 0. */ getTremoloMarksCount() { return this.element.content().withDefault(0).int(); } } exports.Tremolo = Tremolo;