|
|
@@ -303,6 +303,7 @@ const formatTimes = () => {
|
|
|
let preLyricsContent = ''
|
|
|
let preTimes = []
|
|
|
let unitTestIdx = 0
|
|
|
+ let preTime = 0
|
|
|
if (unitTestData.isSelectMeasureMode) {
|
|
|
const startIndex = detailState.times.findIndex(
|
|
|
(n: any) => n.NoteToGraphicalNoteObjectId == detailState.section[0].NoteToGraphicalNoteObjectId
|
|
|
@@ -310,6 +311,9 @@ const formatTimes = () => {
|
|
|
const endIndex = detailState.times.findIndex(
|
|
|
(n: any) => n.NoteToGraphicalNoteObjectId == detailState.section[1].NoteToGraphicalNoteObjectId
|
|
|
)
|
|
|
+ if (startIndex > 1) {
|
|
|
+ preTime = detailState.times[startIndex-1].time * 1000
|
|
|
+ }
|
|
|
times = detailState.times.filter((n: any, index: number) => {
|
|
|
return index >= startIndex && index <= endIndex
|
|
|
})
|
|
|
@@ -339,7 +343,7 @@ const formatTimes = () => {
|
|
|
}
|
|
|
let measureIndex = -1
|
|
|
let recordMeasure = -1
|
|
|
- let firstNoteTime = unitTestIdx > 0 ? times[0].time * 1000 : 0
|
|
|
+ let firstNoteTime = unitTestIdx > 1 ? preTime : 0
|
|
|
for (let index = 0; index < times.length; index++) {
|
|
|
const item = times[index]
|
|
|
const note = getNoteByMeasuresSlursStart(item)
|