lex 9 months ago
parent
commit
e1019f55f1
2 changed files with 21 additions and 5 deletions
  1. 21 5
      public/osmd/index.html
  2. 0 0
      public/osmd/opensheetmusicdisplay.min.js

+ 21 - 5
public/osmd/index.html

@@ -35,14 +35,30 @@
     var osmd = new opensheetmusicdisplay.OpenSheetMusicDisplay("osmdContainer");
     osmd.setOptions({
       backend: "svg",
+      // drawTitle: false,
+      // drawPartNames: false,
+      // drawLyricist: false,
       drawTitle: false,
       drawPartNames: false,
       drawLyricist: false,
+      followCursor: false,
+      autoResize: true,
+      drawSubtitle: false,
+      drawTitle: false,
+      autoBeam: true,
+      drawMetronomeMarks: false,
+      drawMeasureNumbers: false,
+      drawComposer: false,
+      autoGenerateMutipleRestMeasuresFromRestMeasures: true,
+      autoGenerateMultipleRestMeasuresFromRestMeasures: true,
     });
     // osmd.EngravingRules.RenderMultipleRestMeasures = true;
-    // osmd.EngravingRules.CompactMode = true;
-    // osmd.EngravingRules.PageTopMarginNarrow = 5.0; // for compact mode
-    // osmd.EngravingRules.PageBottomMargin = 15.0;
+    osmd.EngravingRules.CompactMode = true;
+    osmd.EngravingRules.PageTopMarginNarrow = 5.0; // for compact mode
+    osmd.EngravingRules.PageBottomMargin = 15.0;
+
+    console.log(osmd, 'osmd.EngravingRules')
+
 
 
     // osmd.EngravingRules.DYMusicScoreType =
@@ -64,8 +80,8 @@
 
 
     osmd.EngravingRules.MinimumDistanceBetweenSystems = 1;
-    // osmd.setPageFormat('794x1123')
-    osmd.setPageFormat('650x884')
+    osmd.setPageFormat('794x1123')
+    // osmd.setPageFormat('650x884')
     function getSvgPngToSize(osmd) {
       if (osmd) {
         if (osmd.Drawer.Backends.length > 0) {

File diff suppressed because it is too large
+ 0 - 0
public/osmd/opensheetmusicdisplay.min.js


Some files were not shown because too many files changed in this diff