client/annotviz/app/js/pianoroll.js
changeset 139 b62fdb81ce6a
parent 120 89544c28a364
child 145 a8052f8ab19c
equal deleted inserted replaced
138:30dc3baf1ab9 139:b62fdb81ce6a
   105                     noteVelocity = noteDef.velocity;
   105                     noteVelocity = noteDef.velocity;
   106                     ts = noteDef.ts;
   106                     ts = noteDef.ts;
   107                 }
   107                 }
   108             }
   108             }
   109             else {
   109             else {
   110                 noteDuration = Date.now() - ts;
   110                 noteDuration = Math.abs(Date.now() - ts);
   111                 this.noteDict[channel][note] = { ts: ts, velocity: velocity, sessionTs: sessionTs};
   111                 this.noteDict[channel][note] = { ts: ts, velocity: velocity, sessionTs: sessionTs};
   112             }
   112             }
   113         }
   113         }
   114 
   114 
   115 
   115