|
@@ -185,8 +185,8 @@ export default defineComponent({
|
|
|
actualBeatLength = Math.round((state.times[0].fixtime * 1000) / 1);
|
|
|
// 如果是阶段评测,选取该阶段的times
|
|
|
if (state.isSelectMeasureMode && state.section.length) {
|
|
|
- const startIndex = state.times.findIndex((n: any) => n.noteId == state.section[0].noteId);
|
|
|
- let endIndex = state.times.findIndex((n: any) => n.noteId == state.section[1].noteId);
|
|
|
+ const startIndex = state.section[0].noteId ? state.times.findIndex((n: any) => n.noteId == state.section[0].noteId) : state.times.findIndex((n: any) => n.MeasureNumberXML == state.section[0].MeasureNumberXML);
|
|
|
+ let endIndex = state.section[1].noteId ? state.times.findIndex((n: any) => n.noteId == state.section[1].noteId) : state.times.findIndex((n: any) => n.MeasureNumberXML == state.section[1].MeasureNumberXML);
|
|
|
endIndex = endIndex < state.section[1].i ? state.section[1].i : endIndex;
|
|
|
if (startIndex > 1) {
|
|
|
// firstNoteTime应该取预备小节的第一个音符的开始播放的时间
|