update pianoroll static template on server
authorrougeronj
Thu, 16 Apr 2015 11:09:13 +0200
changeset 151 8468703ef93c
parent 150 c8fe9606d967
child 152 f0e12afcfba1
update pianoroll static template on server
annot-server/webapp/templates/pianoroll.html
--- a/annot-server/webapp/templates/pianoroll.html	Thu Apr 16 11:08:05 2015 +0200
+++ b/annot-server/webapp/templates/pianoroll.html	Thu Apr 16 11:09:13 2015 +0200
@@ -31,14 +31,44 @@
     var logger = new annotviz.HtmlLogger(false, 'log');
 
     var stageView = new annotviz.StageView({
-        logger: logger
+        logger: logger,
+        sceneWidth: 1024,
     });
-
+    
     var doubleroll = new annotviz.DoubleRoll({
-        logger: logger,
+    	logger: logger,
         stageView: stageView,
-        ws: new annotviz.WsWrapper(wsUri)
+        ws: new annotviz.WsWrapper(wsUri),
+    	orientation: 'horizontal',
+    	sceneWidth: 1024,
+    	sceneHeight: 768,
+    	zeroShift: 1,
+        pianorolls : [
+		  {
+		    height: 384,
+		    timeWidth: 10,
+		    lineInterval: 5000,
+		    noteHeight: undefined,
+		    range: {
+				bottom: 40,
+				top: 90,
+		    },
+		    dynamicRange: true,
+		  },
+		  {
+		    height: 384,
+		    timeWidth: 60,
+		    lineInterval: 5000,
+		    noteHeight: undefined,
+		    range:{
+				bottom: 0,
+				top: 128,
+		    },
+		    dynamicRange: false,
+		  },
+		],
     });
+    
 
     function stop() { stageView.stop(); }
     function start() { stageView.start(); }