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

fix breve notehead (#803)

sschmid 5 éve
szülő
commit
767b008469

+ 3 - 2
src/MusicalScore/Graphical/VexFlow/VexFlowConverter.ts

@@ -59,9 +59,10 @@ export class VexFlowConverter {
       const dur: number = fraction.RealValue;
 
       if (dur === 2) { // Breve
-        return "1/4";
+        return "1/2";
       }
-      if (dur >= 1) { // TODO consider long (4) and maxima (8)
+      // TODO consider long (dur=4) and maxima (dur=8), though Vexflow doesn't seem to support them
+      if (dur >= 1) {
           return "w";
       } else if (dur < 1 && dur >= 0.5) {
         // change to the next higher straight note to get the correct note display type