|
@@ -75,7 +75,7 @@ const playUrl: Ref<string> = ref('')
|
|
|
const endResult = ref(null)
|
|
|
const browserInfo = browser()
|
|
|
const scoreList: any[] = []
|
|
|
-
|
|
|
+let calculateInfo: any = {}
|
|
|
/** 延迟数据 */
|
|
|
const delayData = reactive({
|
|
|
/** 是否强制检测 */
|
|
@@ -391,13 +391,12 @@ const formatTimes = () => {
|
|
|
firstNoteTime
|
|
|
}
|
|
|
}
|
|
|
-const calculateInfo = formatTimes()
|
|
|
-
|
|
|
const connect = async () => {
|
|
|
const search = useOriginSearch()
|
|
|
connentLoading.value = true
|
|
|
const behaviorId = sessionStorage.getItem('behaviorId') || search.behaviorId || initBehaviorId
|
|
|
const rate = runtime.speed / detailState.baseSpeed //1
|
|
|
+ calculateInfo = formatTimes()
|
|
|
const content = {
|
|
|
musicXmlInfos: calculateInfo.datas,
|
|
|
firstNoteTime: calculateInfo.firstNoteTime,
|
|
@@ -653,7 +652,7 @@ const evaluatStart = () => {
|
|
|
api: 'startRecording',
|
|
|
content: {
|
|
|
accompanimentState: SettingState.eva.mute ? 1 : 0,
|
|
|
- firstNoteTime: calculateInfo.firstNoteTime,
|
|
|
+ firstNoteTime: calculateInfo.firstNoteTime || 0,
|
|
|
}
|
|
|
},
|
|
|
() => {
|