--- a/client/annotviz/app/js/doubleroll.js Fri Jan 23 01:08:34 2015 +0100
+++ b/client/annotviz/app/js/doubleroll.js Fri Jan 23 02:00:19 2015 +0100
@@ -5,14 +5,12 @@
* Take a look at http://browserify.org/ for more info
*/
-/* global document: false */
-
'use strict';
var PIXI = require('pixi');
var _ = require('lodash');
-var PianoRoll = require('./pianoroll.js');
+var PianoRoll = require('./pianoroll');
var defaultConfig = {
orientation: 'horizontal',
@@ -63,7 +61,6 @@
this.noteColors = opts.noteColors;
var noteHeight = opts.noteHeight;
- var sceneBgColor = opts.sceneBgColor;
var sceneHeight = opts.sceneHeight || _(opts.pianorolls).reduce(function(s,p) { return s + p.height; }, 0);
var timeWidth = opts.timeWidth;
var lineInterval = opts.lineInterval;
@@ -81,7 +78,7 @@
this.container = new PIXI.DisplayObjectContainer();
this.container.x = Math.floor(sceneWidth*zeroShift);
this.container.y = 0;
-
+
stageView.registerComponent(this);
var pianorollList = [];
@@ -166,7 +163,7 @@
};
this.stop = function() {
-
+
pianorollList.forEach(function(c) {
c.stop();
});