|
|
@@ -302,6 +302,7 @@ const formatTimes = () => {
|
|
|
// 阶段评测前一个节拍的标示
|
|
|
let preLyricsContent = ''
|
|
|
let preTimes = []
|
|
|
+ let unitTestIdx = 0
|
|
|
if (unitTestData.isSelectMeasureMode) {
|
|
|
const startIndex = detailState.times.findIndex(
|
|
|
(n: any) => n.NoteToGraphicalNoteObjectId == detailState.section[0].NoteToGraphicalNoteObjectId
|
|
|
@@ -318,6 +319,7 @@ const formatTimes = () => {
|
|
|
starTime = times[0].sourceRelativeTime || times[0].relativeTime
|
|
|
actualBeatLength = startIndex == 0 && !detailState.needTick ? actualBeatLength : 0
|
|
|
// console.log("🚀 ~ times", times, '开始小节', startIndex, actualBeatLength)
|
|
|
+ unitTestIdx = startIndex
|
|
|
}
|
|
|
// 找到阶段评测,开始小节前面最近的是play或者listen的小节
|
|
|
if (preTimes.length) {
|
|
|
@@ -337,7 +339,7 @@ const formatTimes = () => {
|
|
|
}
|
|
|
let measureIndex = -1
|
|
|
let recordMeasure = -1
|
|
|
- let firstNoteTime = times[0].time * 1000
|
|
|
+ let firstNoteTime = unitTestIdx > 0 ? times[0].time * 1000 : 0
|
|
|
for (let index = 0; index < times.length; index++) {
|
|
|
const item = times[index]
|
|
|
const note = getNoteByMeasuresSlursStart(item)
|