|
@@ -23,7 +23,7 @@ import { headTopData } from "/src/page-instrument/header-top/index";
|
|
|
import { api_lessonTrainingTrainingStudentDetail } from "/src/page-instrument/api"
|
|
|
import { undoData, moveData } from "/src/view/plugins/move-music-score"
|
|
|
import { HANDLE_WORK_ADD } from "/src/page-instrument/custom-plugins/work-index";
|
|
|
-import { speedBeatTo } from "/src/helpers/beatConfig"
|
|
|
+import { speedBeatTo, unitImgs } from "/src/helpers/beatConfig"
|
|
|
|
|
|
const query: any = getQuery();
|
|
|
|
|
@@ -600,6 +600,8 @@ const state = reactive({
|
|
|
isAutoRePlay: false,
|
|
|
/** 跟练,是否收到了录音的回调 */
|
|
|
hasFollowResult: false,
|
|
|
+ /** 右上角速度图标,根据当前小节的速度是几分音符的动态变化 */
|
|
|
+ speedIcon: 'speed3', // 默认取1/4拍的图片
|
|
|
});
|
|
|
const browserInfo = browser();
|
|
|
let offset_duration = 0;
|
|
@@ -2141,6 +2143,10 @@ function getNeedReduceMultipleRestNum(currMeasureIndex: number) {
|
|
|
watch(
|
|
|
() => state.activeMeasureIndex,
|
|
|
() => {
|
|
|
+ // 监听音符小节的变化,取对应的小节速度图片
|
|
|
+ const currentNote = state.times[state.activeNoteIndex]
|
|
|
+ state.speedIcon = unitImgs[currentNote.speedBeatUnit]
|
|
|
+
|
|
|
// 需要减去的合并小节数
|
|
|
// const needReduceMultipleRestNum = getNeedReduceMultipleRestNum(state.activeMeasureIndex)
|
|
|
// const matchMeasureNum = state.activeMeasureIndex - needReduceMultipleRestNum - 1
|