Browse Source

refactor autoBeam variable

Simon Schmid 5 years ago
parent
commit
4308a22ff0
1 changed files with 2 additions and 2 deletions
  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) {