client/annotviz/app/js/pianoroll.js
changeset 139 b62fdb81ce6a
parent 120 89544c28a364
child 145 a8052f8ab19c
--- a/client/annotviz/app/js/pianoroll.js	Fri Jan 23 11:31:51 2015 +0100
+++ b/client/annotviz/app/js/pianoroll.js	Fri Jan 23 15:30:58 2015 +0100
@@ -107,7 +107,7 @@
                 }
             }
             else {
-                noteDuration = Date.now() - ts;
+                noteDuration = Math.abs(Date.now() - ts);
                 this.noteDict[channel][note] = { ts: ts, velocity: velocity, sessionTs: sessionTs};
             }
         }