Ver Fonte

#700, Rendering fix for half note tuplets
Conditional was added to ensure that TypeLength value did not override the duration improperly.
Duplicated from logic present for all smaller note values to accomodate half notes.

Justin Litten há 5 anos atrás
pai
commit
9512c3aaf0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/MusicalScore/Graphical/VexFlow/VexFlowConverter.ts

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

@@ -61,7 +61,7 @@ export class VexFlowConverter {
           return "w";
           return "w";
       } else if (dur < 1 && dur >= 0.5) {
       } else if (dur < 1 && dur >= 0.5) {
         // change to the next higher straight note to get the correct note display type
         // change to the next higher straight note to get the correct note display type
-        if (isTuplet) {
+        if (isTuplet && dur > 0.5) {
           return "w";
           return "w";
         }
         }
         return "h";
         return "h";