|
|
@@ -72,24 +72,23 @@ const resetFrequency = (list: any[]) => {
|
|
|
* 乐器指法处理
|
|
|
*/
|
|
|
const setNoteHalfTone = (list: any[]) => {
|
|
|
- const instrumentNames = ['melodica']
|
|
|
+ const instrumentNames = ["melodica"];
|
|
|
if (!state.fingeringInfo?.name || !instrumentNames.includes(state.fingeringInfo.name)) return list;
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
const note = list[i];
|
|
|
- if (note.noteElement?.pitch?.accidentalXml){
|
|
|
+ if (note.noteElement?.pitch?.accidentalXml) {
|
|
|
const accidentalXml = note.noteElement?.pitch?.accidentalXml;
|
|
|
if ([]) {
|
|
|
-
|
|
|
}
|
|
|
- if (accidentalXml === 'flat'){
|
|
|
+ if (accidentalXml === "flat") {
|
|
|
// note.realKey = note.realKey + 1;
|
|
|
- } else if (accidentalXml === 'sharp'){
|
|
|
+ } else if (accidentalXml === "sharp") {
|
|
|
// note.realKey = note.realKey + 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return list;
|
|
|
-}
|
|
|
+};
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "music-list",
|
|
|
@@ -175,7 +174,7 @@ export default defineComponent({
|
|
|
state.playMode = data.audioType === "MP3" ? "MP3" : "MIDI";
|
|
|
state.originSpeed = state.speed = data.playSpeed;
|
|
|
const track = data.code || data.track;
|
|
|
- state.track = track ? track.replace(/ /g, '').toLocaleLowerCase() : "";
|
|
|
+ state.track = track ? track.replace(/ /g, "").toLocaleLowerCase() : "";
|
|
|
state.enableNotation = data.notation ? true : false;
|
|
|
|
|
|
// 映射声部ID
|
|
|
@@ -326,7 +325,9 @@ export default defineComponent({
|
|
|
watch(
|
|
|
() => state.playState,
|
|
|
() => {
|
|
|
- detailData.headerHide = state.playState === "play" ? true : false;
|
|
|
+ if (state.platform != IPlatform.PC) {
|
|
|
+ detailData.headerHide = state.playState === "play" ? true : false;
|
|
|
+ }
|
|
|
sendParentMessage(state.playState);
|
|
|
}
|
|
|
);
|
|
|
@@ -338,7 +339,7 @@ export default defineComponent({
|
|
|
});
|
|
|
const browsInfo = browser();
|
|
|
const handleOpenFignerView = () => {
|
|
|
- if (!query.modelType){
|
|
|
+ if (!query.modelType) {
|
|
|
detailData.orientation = state.fingeringInfo.orientation || 0;
|
|
|
api_setRequestedOrientation(detailData.orientation);
|
|
|
}
|
|
|
@@ -355,7 +356,7 @@ export default defineComponent({
|
|
|
detailData.fingerPreView = true;
|
|
|
};
|
|
|
const handleCloseFignerView = () => {
|
|
|
- if (!query.modelType && detailData.orientation == 1){
|
|
|
+ if (!query.modelType && detailData.orientation == 1) {
|
|
|
api_setRequestedOrientation(0);
|
|
|
}
|
|
|
detailData.fingerPreView = false;
|
|
|
@@ -391,7 +392,7 @@ export default defineComponent({
|
|
|
browsInfo.xiaomi && styles.xiaomi,
|
|
|
]}
|
|
|
onClick={(e: Event) => {
|
|
|
- if (state.playState === "play") {
|
|
|
+ if (state.playState === "play" && state.platform != IPlatform.PC) {
|
|
|
detailData.headerHide = !detailData.headerHide;
|
|
|
}
|
|
|
}}
|
|
|
@@ -435,20 +436,24 @@ export default defineComponent({
|
|
|
{storeData.isApp && <RecordingTime />}
|
|
|
{/* 作业 */}
|
|
|
{query.workRecord && <WorkIndex />}
|
|
|
- {followData.start + ""}
|
|
|
{/* 曲谱列表 */}
|
|
|
{state.playState == "play" ||
|
|
|
followData.start ||
|
|
|
evaluatingData.startBegin ||
|
|
|
query.workRecord ||
|
|
|
- query.modelType ? null : (
|
|
|
+ query.modelType ||
|
|
|
+ state.platform === IPlatform.PC ? null : (
|
|
|
<TheMusicList />
|
|
|
)}
|
|
|
</>
|
|
|
)}
|
|
|
|
|
|
<Popup teleport="body" v-model:show={detailData.fingerPreView} position="bottom">
|
|
|
- <ViewFigner subject={state.fingeringInfo.name} isComponent={true} onClose={handleCloseFignerView} />
|
|
|
+ <ViewFigner
|
|
|
+ subject={state.fingeringInfo.name}
|
|
|
+ isComponent={true}
|
|
|
+ onClose={handleCloseFignerView}
|
|
|
+ />
|
|
|
</Popup>
|
|
|
</div>
|
|
|
);
|