Bläddra i källkod

fix(Beams): Fix beams in tuplets with disconnected stems (#907)

sschmid 4 år sedan
förälder
incheckning
8a97d4754b
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      src/MusicalScore/Graphical/VexFlow/VexFlowMeasure.ts

+ 4 - 0
src/MusicalScore/Graphical/VexFlow/VexFlowMeasure.ts

@@ -788,6 +788,10 @@ export class VexFlowMeasure extends GraphicalMeasure {
                     for (const gve of voiceEntries) {
                         if (gve.parentVoiceEntry.ParentVoice === psBeam.Notes[0].ParentVoiceEntry.ParentVoice) {
                             autoStemBeam = gve.parentVoiceEntry.WantedStemDirection === StemDirectionType.Undefined;
+                            if (psBeam.Notes[0].NoteTuplet) {
+                                autoStemBeam = true; // TODO fix necessary for now for tuplets with beams, see test_drum_tublet_beams
+                                break;
+                            }
                         }
                     }