UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

16 lines (15 loc) 455 B
/** * 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/ */ export 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(); } }