فهرست منبع

autoBeam: fix tuplet beams broken on beat

fix for bug introduced in #574 fix
Simon Schmid 5 سال پیش
والد
کامیت
93f1236001
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      src/MusicalScore/Graphical/VexFlow/VexFlowMeasure.ts

+ 5 - 5
src/MusicalScore/Graphical/VexFlow/VexFlowMeasure.ts

@@ -679,11 +679,11 @@ export class VexFlowMeasure extends GraphicalMeasure {
                         notesToAutoBeam = []; // reset notesToAutoBeam, otherwise the next beam includes the previous beam's notes too
                     }
                     consecutiveBeamableNotes = []; // reset notes to beam
-                    if (!unbeamableNote) { // beamable note, probably new beat, take into next beam
-                        consecutiveBeamableNotes.push(vfStaveNote); // start new beam on beat
-                    }
 
-                    continue;
+                    if (unbeamableNote) {
+                        continue;
+                    }
+                    // else, note will be pushed to consecutiveBeamableNotes after tuplet check, also for note on new beat
                 }
 
                 // create beams for tuplets separately
@@ -732,7 +732,7 @@ export class VexFlowMeasure extends GraphicalMeasure {
                     currentTuplet = undefined;
                 }
 
-                consecutiveBeamableNotes.push(vfStaveNote);
+                consecutiveBeamableNotes.push(vfStaveNote); // also happens on new beat
             }
         }
         if (tupletNotesToAutoBeam.length >= 2) {