Forráskód Böngészése

refactor autoBeam variable

Simon Schmid 5 éve
szülő
commit
4308a22ff0

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

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