From d4f242a236a210014389d8105cf164d0abe949a3 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Sun, 14 Oct 2018 23:33:22 +0300 Subject: [PATCH] Fix missing original timestamps --- public/src/js/parsetja.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/src/js/parsetja.js b/public/src/js/parsetja.js index 5d390ce..1874c82 100644 --- a/public/src/js/parsetja.js +++ b/public/src/js/parsetja.js @@ -149,6 +149,7 @@ for(var measureMs = ms - msPerMeasure; measureMs > 0; measureMs -= msPerMeasure){ this.measures.push({ ms: measureMs, + originalMS: ms, speed: speed }) } @@ -167,6 +168,7 @@ note.start = ms if(note.endDrumroll){ note.endDrumroll.endTime = ms + note.endDrumroll.originalEndTime = ms } var msPerMeasure = 60000 * measure / note.bpm ms += msPerMeasure / currentMeasure.length @@ -345,6 +347,7 @@ pushMeasure() if(lastDrumroll){ lastDrumroll.endTime = ms + lastDrumroll.originalEndTime = ms } return circles