|
@@ -576,6 +576,9 @@ export class PlaybackManager implements IPlaybackParametersListener {
|
|
|
// console.log("TS ms: " + this.timingSource.getCurrentTimeInMs());
|
|
|
// console.log("TS ts: " + this.currentTimestamp);
|
|
|
endHasBeenReached = this.cursorIterator.EndReached;
|
|
|
+ if (!this.cursorIterator.CurrentMeasure.WasRendered) {
|
|
|
+ endHasBeenReached = true;
|
|
|
+ }
|
|
|
|
|
|
/**********************************************/
|
|
|
// handle the currently pending instructions:
|
|
@@ -666,6 +669,9 @@ export class PlaybackManager implements IPlaybackParametersListener {
|
|
|
const playbackedNotes: PlaybackNote[] = [];
|
|
|
|
|
|
for (const entry of dueEntries) {
|
|
|
+ if (!entry.playbackEntry.ParentVoiceEntry.ParentSourceStaffEntry.VerticalContainerParent.ParentMeasure.WasRendered) {
|
|
|
+ continue; // don't play back entry that isn't visible. (e.g. first note in measure after maxMeasureToDraw)
|
|
|
+ }
|
|
|
const playbackEntry: PlaybackEntry = entry.playbackEntry;
|
|
|
const voiceEntry: VoiceEntry = playbackEntry.ParentVoiceEntry;
|
|
|
if (playbackEntry.Notes.length === 0) {
|