Переглянути джерело

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

sschmid 4 роки тому
батько
коміт
8a97d4754b
1 змінених файлів з 4 додано та 0 видалено
  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;
+                            }
                         }
                     }