|
@@ -24,6 +24,7 @@ import { api_lessonTrainingTrainingStudentDetail } from "/src/page-instrument/ap
|
|
|
import { undoData, moveData } from "/src/view/plugins/move-music-score"
|
|
|
import { HANDLE_WORK_ADD } from "/src/page-instrument/custom-plugins/work-index";
|
|
|
import { speedBeatTo, unitImgs } from "/src/helpers/beatConfig"
|
|
|
+import { fixInstrumentNameCode } from "/src/constant/instruments";
|
|
|
|
|
|
const query: any = getQuery();
|
|
|
|
|
@@ -1903,7 +1904,10 @@ const setState = (data: any, index: number) => {
|
|
|
* 获取指法code
|
|
|
*/
|
|
|
|
|
|
- const code = matchVoicePart(state.trackId, "CONCERT")
|
|
|
+ let code = matchVoicePart(state.trackId, "CONCERT")
|
|
|
+ if (code == 1 || !code) {
|
|
|
+ code = fixInstrumentNameCode(state.trackId)
|
|
|
+ }
|
|
|
state.fingeringInfo = subjectFingering(code);
|
|
|
console.log("🚀 ~ state.fingeringInfo:", code, state.fingeringInfo, state.trackId, state.track);
|
|
|
state.musicalCodeId = state.fingeringInfo?.id || 0
|