|
@@ -607,6 +607,11 @@ export class PlaybackManager implements IPlaybackParametersListener {
|
|
|
// calculate the new beat duration
|
|
|
this.currentBeatDuration = new Fraction(1, this.currentMeasure.Duration.Denominator);
|
|
|
|
|
|
+ const currentMeasureBPM: number = this.currentMeasure.TempoInBPM;
|
|
|
+ if(currentMeasureBPM !== this.currentBPM){
|
|
|
+ this.bpmChanged(currentMeasureBPM); // update playback speed/bpm
|
|
|
+ }
|
|
|
+
|
|
|
// calculate which beat is next:
|
|
|
const relativeNextMetronomeBeatTimestamp: Fraction = new Fraction();
|
|
|
this.beatCounter = 0;
|