@stringsync/vexml
Version:
MusicXML to Vexflow
25 lines (24 loc) • 658 B
JavaScript
import * as util from '../../util';
import { Fraction } from './fraction';
export class Dynamics {
config;
log;
measureBeat;
dynamicType;
constructor(config, log, measureBeat, dynamicType) {
this.config = config;
this.log = log;
this.measureBeat = measureBeat;
this.dynamicType = dynamicType;
}
parse() {
const duration = new Fraction(util.Fraction.zero()).parse();
const measureBeat = new Fraction(this.measureBeat).parse();
return {
type: 'dynamics',
duration,
dynamicType: this.dynamicType,
measureBeat,
};
}
}