Explorar o código

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

sschmid %!s(int64=4) %!d(string=hai) anos
pai
achega
8a97d4754b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;
+                            }
                         }
                     }