--- 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(); }