annot-server/webapp/templates/pianoroll.html
changeset 151 8468703ef93c
parent 108 082b64a5c699
child 153 60bd2b36b9dc
equal deleted inserted replaced
150:c8fe9606d967 151:8468703ef93c
    29     wsUri += '?channel='+annotationChannel+'&event_code='+eventCode;
    29     wsUri += '?channel='+annotationChannel+'&event_code='+eventCode;
    30 
    30 
    31     var logger = new annotviz.HtmlLogger(false, 'log');
    31     var logger = new annotviz.HtmlLogger(false, 'log');
    32 
    32 
    33     var stageView = new annotviz.StageView({
    33     var stageView = new annotviz.StageView({
    34         logger: logger
    34         logger: logger,
       
    35         sceneWidth: 1024,
    35     });
    36     });
    36 
    37     
    37     var doubleroll = new annotviz.DoubleRoll({
    38     var doubleroll = new annotviz.DoubleRoll({
    38         logger: logger,
    39     	logger: logger,
    39         stageView: stageView,
    40         stageView: stageView,
    40         ws: new annotviz.WsWrapper(wsUri)
    41         ws: new annotviz.WsWrapper(wsUri),
       
    42     	orientation: 'horizontal',
       
    43     	sceneWidth: 1024,
       
    44     	sceneHeight: 768,
       
    45     	zeroShift: 1,
       
    46         pianorolls : [
       
    47 		  {
       
    48 		    height: 384,
       
    49 		    timeWidth: 10,
       
    50 		    lineInterval: 5000,
       
    51 		    noteHeight: undefined,
       
    52 		    range: {
       
    53 				bottom: 40,
       
    54 				top: 90,
       
    55 		    },
       
    56 		    dynamicRange: true,
       
    57 		  },
       
    58 		  {
       
    59 		    height: 384,
       
    60 		    timeWidth: 60,
       
    61 		    lineInterval: 5000,
       
    62 		    noteHeight: undefined,
       
    63 		    range:{
       
    64 				bottom: 0,
       
    65 				top: 128,
       
    66 		    },
       
    67 		    dynamicRange: false,
       
    68 		  },
       
    69 		],
    41     });
    70     });
       
    71     
    42 
    72 
    43     function stop() { stageView.stop(); }
    73     function stop() { stageView.stop(); }
    44     function start() { stageView.start(); }
    74     function start() { stageView.start(); }
    45 
    75 
    46     window.onload = function() {
    76     window.onload = function() {