mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-10-22 17:05:49 +02:00
Fix missing original timestamps
This commit is contained in:
parent
122d3c06c8
commit
d4f242a236
@ -149,6 +149,7 @@
|
|||||||
for(var measureMs = ms - msPerMeasure; measureMs > 0; measureMs -= msPerMeasure){
|
for(var measureMs = ms - msPerMeasure; measureMs > 0; measureMs -= msPerMeasure){
|
||||||
this.measures.push({
|
this.measures.push({
|
||||||
ms: measureMs,
|
ms: measureMs,
|
||||||
|
originalMS: ms,
|
||||||
speed: speed
|
speed: speed
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -167,6 +168,7 @@
|
|||||||
note.start = ms
|
note.start = ms
|
||||||
if(note.endDrumroll){
|
if(note.endDrumroll){
|
||||||
note.endDrumroll.endTime = ms
|
note.endDrumroll.endTime = ms
|
||||||
|
note.endDrumroll.originalEndTime = ms
|
||||||
}
|
}
|
||||||
var msPerMeasure = 60000 * measure / note.bpm
|
var msPerMeasure = 60000 * measure / note.bpm
|
||||||
ms += msPerMeasure / currentMeasure.length
|
ms += msPerMeasure / currentMeasure.length
|
||||||
@ -345,6 +347,7 @@
|
|||||||
pushMeasure()
|
pushMeasure()
|
||||||
if(lastDrumroll){
|
if(lastDrumroll){
|
||||||
lastDrumroll.endTime = ms
|
lastDrumroll.endTime = ms
|
||||||
|
lastDrumroll.originalEndTime = ms
|
||||||
}
|
}
|
||||||
|
|
||||||
return circles
|
return circles
|
||||||
|
Loading…
Reference in New Issue
Block a user