|
@@ -3,7 +3,7 @@ import { defineComponent, watchEffect, TransitionGroup, ref, Ref, reactive } fro
|
|
import event from '/src/components/music-score/event'
|
|
import event from '/src/components/music-score/event'
|
|
import SettingState from '/src/pages/detail/setting-state'
|
|
import SettingState from '/src/pages/detail/setting-state'
|
|
import state from '../state'
|
|
import state from '../state'
|
|
-import runtime, { getFirsrNoteByMeasureListIndex, getBoundingBoxByNote } from '../runtime'
|
|
|
|
|
|
+import runtime, { getFirsrNoteByMeasureListIndex, getBoundingBoxByNote, changeSpeed } from '../runtime'
|
|
import { getActtiveNoteByTimes, getBoundingBoxByverticalNote, getNoteBySlursStart, setSettionBackground } from '../helpers'
|
|
import { getActtiveNoteByTimes, getBoundingBoxByverticalNote, getNoteBySlursStart, setSettionBackground } from '../helpers'
|
|
import { formatZoom } from '/src/helpers/utils'
|
|
import { formatZoom } from '/src/helpers/utils'
|
|
import styles from './index.module.less'
|
|
import styles from './index.module.less'
|
|
@@ -102,6 +102,12 @@ export default defineComponent({
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (state.section.length === 2) {
|
|
if (state.section.length === 2) {
|
|
|
|
+ // 选段状态需要重置播放倍率为1
|
|
|
|
+ runtime.basePlayRate = 1;
|
|
|
|
+ const currentItem: any = state.times[runtime.activeIndex];
|
|
|
|
+ const currentSpeed = currentItem?.measureSpeed ? currentItem.measureSpeed : state.activeSpeed;
|
|
|
|
+ changeSpeed(currentSpeed)
|
|
|
|
+
|
|
Toast.clear()
|
|
Toast.clear()
|
|
setSettionBackground()
|
|
setSettionBackground()
|
|
}
|
|
}
|