Browse Source

refactor: autoBeam: take sourceNote.length instead of graphicalNoteLength

Simon Schmid 5 years ago
parent
commit
52a4f38659
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/MusicalScore/Graphical/VexFlow/VexFlowMeasure.ts

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

@@ -667,7 +667,7 @@ export class VexFlowMeasure extends GraphicalMeasure {
                 const haveTwoOrMoreNotesToBeamAlready: boolean = consecutiveBeamableNotes.length >= 2;
                 const unbeamableNote: boolean =
                     gve.parentVoiceEntry.IsGrace || // don't beam grace notes
-                    gNote.graphicalNoteLength.CompareTo(new Fraction(1, 4)) === 1 || // don't beam quarter or longer notes
+                    gNote.sourceNote.Length.CompareTo(new Fraction(1, 4)) === 1 || // don't beam quarter or longer notes
                     beamedNotes.contains(vfStaveNote);
                 if (unbeamableNote || isOnBeat) { // end beam
                     if (haveTwoOrMoreNotesToBeamAlready) {