UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

25 lines (24 loc) 609 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Accidental = void 0; 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, }; } } exports.Accidental = Accidental;