Fix missing original timestamps

This commit is contained in:
LoveEevee 2018-10-14 23:33:22 +03:00
parent 122d3c06c8
commit d4f242a236

View File

@ -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