Просмотр исходного кода

Merge branch 'feature-tianyong-newVersion' into ktyq-test-new

TIANYONG 11 месяцев назад
Родитель
Сommit
d00e31f8e5
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/helpers/calcSpeed.ts

+ 3 - 3
src/helpers/calcSpeed.ts

@@ -160,13 +160,13 @@ export const getGradualLengthByXml = (xml: string) => {
 	// 结尾处手动插入一个音符节点
 	eles.push({
 		ele: notes[notes.length - 1],
-		index: notes.length,
+		index: notes.length-1,
 		noteInMeasureIndex: 0,
 		textContent: "",
 		type: "metronome",
 		allDuration: 1,
-		leftDuration: 1,
-		measureIndex: measures.length,
+		leftDuration: 0,
+		measureIndex: measures.length-1,
 	});
 
 	const gradualNotes: GradualNote[] = [];