diff -r a69b84330219 -r cbbdbbae7ead annot-server/static/js/pianoroll.js --- a/annot-server/static/js/pianoroll.js Sat Oct 25 12:05:37 2014 +0200 +++ b/annot-server/static/js/pianoroll.js Sat Oct 25 13:33:08 2014 +0200 @@ -132,6 +132,7 @@ var width = duration * pixelsPerSecond / 1000; // We draw the rectangle var graphics = new PIXI.Graphics(); + //console.log("beginX = ", beginX, "canal = ", canal, "color = ", noteColor[canal], "width = ", width, "note = ", note, "velocity = ", velocity); graphics.beginFill(noteColor[canal], (velocity / 128)); var y = (128-note) * prHeight / 128; // (128-note) because y = 0 is for note = 128 and y = 128 for note = 0 graphics.drawRect(beginX, Math.floor(y - (noteHeight/2) + ((prHeight / 128)/2)), width, noteHeight);