# HG changeset patch # User rougeronj # Date 1429175353 -7200 # Node ID 8468703ef93c1aad800637f28b247b1c0f54243d # Parent c8fe9606d96763597822a5ca48c162d3eb3c590e update pianoroll static template on server diff -r c8fe9606d967 -r 8468703ef93c 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(); }