UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

28 lines (27 loc) 641 B
export class StaveCount { config; log; partId; value; constructor(config, log, partId, value) { this.config = config; this.log = log; this.partId = partId; this.value = value; } static default(config, log, partId) { return new StaveCount(config, log, partId, 1); } getPartId() { return this.partId; } getValue() { return this.value; } isEqual(staveCount) { return this.partId === staveCount.partId && this.isEquivalent(staveCount); } isEquivalent(staveCount) { return this.value === staveCount.value; } }