@stringsync/vexml
Version:
MusicXML to Vexflow
32 lines (31 loc) • 773 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StaveCount = void 0;
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;
}
}
exports.StaveCount = StaveCount;