diff test.tmpl @ 21:dbc7d00fcb7d midi-experiment

Try to add midi playback of sheet music
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 01 Jul 2020 11:41:39 +0200
parents 4bcdc24edbe3
children
line wrap: on
line diff
--- a/test.tmpl	Wed Jul 01 11:37:21 2020 +0200
+++ b/test.tmpl	Wed Jul 01 11:41:39 2020 +0200
@@ -4,13 +4,21 @@
     <meta charset="UTF-8">
 
     <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css">
+    <link href="abcjs-midi.css" type="text/css" rel="stylesheet" />
 
     <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
     <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
 
-    <script src="abcjs_plugin_5.10.3-min.js" type="text/javascript"></script>
+    <script src="abcjs_plugin-midi_5.9.1-min.js"></script>
 
-    <style>
+    <script type="text/javascript">
+        window.ABCJS.plugin.render_before = true;
+        window.ABCJS.plugin.render_options = {program: 41, defaultQpm: 150};
+        //window.ABCJS.plugin.debug = true;
+    </script>
+
+
+     <style>
         .abctext {display: none;}
     </style>
 </head>