@stringsync/vexml
Version:
MusicXML to Vexflow
21 lines (20 loc) • 477 B
JavaScript
export class Accidental {
config;
log;
code;
isCautionary;
constructor(config, log, code, isCautionary) {
this.config = config;
this.log = log;
this.code = code;
this.isCautionary = isCautionary;
}
parse(voiceEntryCtx) {
voiceEntryCtx.setActiveAccidental(this.code);
return {
type: 'accidental',
code: this.code,
isCautionary: this.isCautionary,
};
}
}