sschmid 4 лет назад
Родитель
Сommit
a885afb059

+ 0 - 5
src/MusicalScore/Graphical/VexFlow/VexFlowConverter.ts

@@ -574,10 +574,6 @@ export class VexFlowConverter {
                 });
             }
 
-          /*  if (tabNote.NoteTie) {
-                tabTies = tabNote.NoteTie;
-            } */
-
             if (tabNote.VibratoStroke) {
                 tabVibrato = true;
             }
@@ -606,7 +602,6 @@ export class VexFlowConverter {
                 vfnote.addModifier (new Vex.Flow.Bend(phrase.text, true));
             }
         });
-        // does not work well to add phrases as array
         if (tabVibrato) {
             vfnote.addModifier(new Vex.Flow.Vibrato());
         }

+ 2 - 8
src/MusicalScore/Graphical/VexFlow/VexFlowMusicSheetCalculator.ts

@@ -137,13 +137,6 @@ export class VexFlowMusicSheetCalculator extends MusicSheetCalculator {
       softmaxFactor: this.rules.SoftmaxFactorVexFlow // this setting is only applied in Vexflow 3.x. also this needs @types/vexflow ^3.0.0
     });
 
-    /*
-    {
-      // maxIterations: 2,
-      softmaxFactor: this.rules.SoftmaxFactorVexFlow // this setting is only applied in Vexflow 3.x. also this needs @types/vexflow ^3.0.0
-    }
-    */
-
     for (const measure of measures) {
       if (!measure) {
         continue;
@@ -474,6 +467,7 @@ export class VexFlowMusicSheetCalculator extends MusicSheetCalculator {
    * Calculate the shape (Bezier curve) for this tie.
    * @param tie
    * @param tieIsAtSystemBreak
+   * @param isTab Whether this tie is for a tab note (guitar tabulature)
    */
   protected layoutGraphicalTie(tie: GraphicalTie, tieIsAtSystemBreak: boolean, isTab: boolean): void {
     const startNote: VexFlowGraphicalNote = (tie.StartNote as VexFlowGraphicalNote);
@@ -546,7 +540,7 @@ export class VexFlowMusicSheetCalculator extends MusicSheetCalculator {
             );
           }
 
-        } else {
+        } else { // not Tab (guitar), normal StaveTie
           vfTie = new Vex.Flow.StaveTie({
             first_indices: [startNoteIndexInTie],
             first_note: vfStartNote,