Quellcode durchsuchen

refactor autoBeam variable

Simon Schmid vor 5 Jahren
Ursprung
Commit
4308a22ff0
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/MusicalScore/Graphical/VexFlow/VexFlowMeasure.ts

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

@@ -700,14 +700,14 @@ export class VexFlowMeasure extends GraphicalMeasure {
                         }
                     }
                     if (!tupletContainsUnbeamableNote) {
-                        tupletNotesToAutoBeam.push(<StaveNote>(gve as VexFlowVoiceEntry).vfStaveNote);
+                        tupletNotesToAutoBeam.push(vfStaveNote);
                     }
                     continue;
                 } else {
                     currentTuplet = undefined;
                 }
 
-                consecutiveBeamableNotes.push((gve as VexFlowVoiceEntry).vfStaveNote);
+                consecutiveBeamableNotes.push(vfStaveNote);
             }
         }
         if (tupletNotesToAutoBeam.length >= 2) {