|
@@ -370,6 +370,8 @@ const state = reactive({
|
|
|
needTick: false,
|
|
|
|
|
|
needSingTick: false,
|
|
|
+
|
|
|
+ isMixBeat: true,
|
|
|
|
|
|
osmd: null as unknown as OpenSheetMusicDisplay,
|
|
|
|
|
@@ -649,7 +651,7 @@ export const onEnded = () => {
|
|
|
|
|
|
const dynamicShowPlaySpeed = (index: number) => {
|
|
|
if (!headerColumnHide.value) {
|
|
|
- console.log('动态计算速度')
|
|
|
+
|
|
|
const item: any = state.times[index];
|
|
|
if (item && item.measureSpeed ) {
|
|
|
|
|
@@ -1108,9 +1110,12 @@ export const handleResetPlay = () => {
|
|
|
audioData.progress = 0
|
|
|
}
|
|
|
|
|
|
- if (!query.workRecord) {
|
|
|
- resetBaseRate();
|
|
|
- }
|
|
|
+
|
|
|
+ * #TODO:2024.09.14,业务需求变更,重播不还原用户设置的速度
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
resetPlaybackToStart();
|
|
|
|
|
|
togglePlay("play");
|
|
@@ -1356,6 +1361,8 @@ const getMusicInfo = async (res: any) => {
|
|
|
state.isScoreRender = res.data?.isScoreRender
|
|
|
|
|
|
state.defaultScoreRender = res.data?.defaultScoreRender
|
|
|
+
|
|
|
+ state.isMixBeat = res.data?.isMixBeat
|
|
|
let partIndex = query["part-index"] ? parseInt(query["part-index"]) : -1
|
|
|
|
|
|
if (state.isEvaluatReport) {
|
|
@@ -1506,18 +1513,21 @@ function initMusicSource(data: any, tracks: string[], partIndex: number, workRec
|
|
|
state.mingSong = fanSongObj?.solmizationFileUrl
|
|
|
state.mingSongGirl = fanSongObj?.femaleSolmizationFileUrl
|
|
|
}
|
|
|
- Object.assign(state.beatSong, {
|
|
|
- music: musicObj?.audioBeatMixUrl,
|
|
|
- accompany: accompanyObj?.audioBeatMixUrl,
|
|
|
- fanSong: fanSongObj?.audioBeatMixUrl,
|
|
|
- banSong: banSongObj?.audioBeatMixUrl
|
|
|
- })
|
|
|
-
|
|
|
- if(!fanSongObj?.solmizationBeatUrl){
|
|
|
- state.beatSong.mingSong = fanSongObj?.femaleSolmizationBeatUrl
|
|
|
- }else{
|
|
|
- state.beatSong.mingSong = fanSongObj?.solmizationBeatUrl
|
|
|
- state.beatSong.mingSongGirl = fanSongObj?.femaleSolmizationBeatUrl
|
|
|
+
|
|
|
+ if(state.isMixBeat) {
|
|
|
+ Object.assign(state.beatSong, {
|
|
|
+ music: musicObj?.audioBeatMixUrl,
|
|
|
+ accompany: accompanyObj?.audioBeatMixUrl,
|
|
|
+ fanSong: fanSongObj?.audioBeatMixUrl,
|
|
|
+ banSong: banSongObj?.audioBeatMixUrl
|
|
|
+ })
|
|
|
+
|
|
|
+ if(!fanSongObj?.solmizationBeatUrl){
|
|
|
+ state.beatSong.mingSong = fanSongObj?.femaleSolmizationBeatUrl
|
|
|
+ }else{
|
|
|
+ state.beatSong.mingSong = fanSongObj?.solmizationBeatUrl
|
|
|
+ state.beatSong.mingSongGirl = fanSongObj?.femaleSolmizationBeatUrl
|
|
|
+ }
|
|
|
}
|
|
|
return {
|
|
|
index,
|