--- a/client/annotviz/app/js/pianoroll.js Fri Jan 16 03:16:19 2015 +0100
+++ b/client/annotviz/app/js/pianoroll.js Fri Jan 16 20:20:28 2015 +0100
@@ -17,8 +17,8 @@
function PianoRoll(options) {
var _this = this;
this.container = new PIXI.DisplayObjectContainer();
- this.container.position.x = options.xInit;
- this.container.position.y = options.yInit;
+ this.container.x = options.xInit;
+ this.container.y = options.yInit;
options.parentContainer.addChild(this.container);
this.linesDown = options.linesDown;
@@ -34,6 +34,8 @@
this.noteDict = {};
this.startTs = options.startTs || Date.now();
+ var started = false;
+
//TODO: I do not like the "regColor" object. This should not be global, but local
this.getColor = function(canal) {
@@ -192,8 +194,7 @@
};
this.start = function() {
- if(typeof(this.startTs) === 'undefined') {
- console.log('Container Started');
+ if(!started) {
this.startTs = Date.now();
this.addLine();
}