|
@@ -1394,7 +1394,7 @@ function initMusicSource(data: any, tracks: string[], partIndex: number) {
|
|
accompanyObj = musicSheetAccompanimentList.find((item: any) => {
|
|
accompanyObj = musicSheetAccompanimentList.find((item: any) => {
|
|
return item.audioPlayType === "PLAY"
|
|
return item.audioPlayType === "PLAY"
|
|
})
|
|
})
|
|
- // 适用声部(isAllSubject)为true 时候没有乐器只有一个原音;当前用户有乐器就匹配 不然取第一个原音
|
|
|
|
|
|
+ // 是否全声部(isAllSubject)为true 时候没有乐器只有一个原音(比如节奏练习,这个曲子全部乐器都支持);当前用户有乐器就匹配 不然取第一个原音
|
|
musicObj = musicSheetSoundList.find((item: any) => {
|
|
musicObj = musicSheetSoundList.find((item: any) => {
|
|
return (isAllSubject || !instrumentId) ? item.audioPlayType === "PLAY" : (item.audioPlayType === "PLAY" && item.musicalInstrumentId == instrumentId)
|
|
return (isAllSubject || !instrumentId) ? item.audioPlayType === "PLAY" : (item.audioPlayType === "PLAY" && item.musicalInstrumentId == instrumentId)
|
|
})
|
|
})
|