|
@@ -577,6 +577,8 @@ const state = reactive({
|
|
|
/** 是否是C调,切换到唱名时,只有C调所有的谱面类型都可以播放唱名文件;其它调的只有首调可以播放唱名,因为唱名是按照C调制作的,没有其它调的唱名文件 */
|
|
|
isCTone: false,
|
|
|
evxmlAddPartName: false, // 妙极客的部分曲子没有part-name,需要自行添加的part-name
|
|
|
+ /** 乐器id */
|
|
|
+ instrumentId: null,
|
|
|
});
|
|
|
const browserInfo = browser();
|
|
|
let offset_duration = 0;
|
|
@@ -1414,6 +1416,7 @@ function xmlToTracks(xmlString: string) {
|
|
|
function initMusicSource(data: any, tracks: string[], partIndex: number, workRecordInstrumentId?: string) {
|
|
|
let track:string,index:number, musicalInstrumentId: string
|
|
|
const instrumentId = workRecordInstrumentId || query.instrumentId || storeData.user?.instrumentId
|
|
|
+ state.instrumentId = instrumentId;
|
|
|
let { musicSheetType, isAllSubject, musicSheetSoundList, musicSheetAccompanimentList } = data
|
|
|
musicSheetSoundList || (musicSheetSoundList = [])
|
|
|
musicSheetAccompanimentList || (musicSheetAccompanimentList = [])
|
|
@@ -2200,6 +2203,7 @@ export const checkMoveNoSave = async () => {
|
|
|
|
|
|
/** 刷新谱面 */
|
|
|
export const refreshMusicSvg = () => {
|
|
|
+ moveData.noteCoords = []
|
|
|
moveData.modelList = []
|
|
|
clearSelection();
|
|
|
resetBaseRate();
|