|
@@ -322,7 +322,7 @@ export const formatPitch = (num?: number): number => {
|
|
|
let starTime = 0
|
|
|
const formatTimes = () => {
|
|
|
// const rate = runtime.speed / detailState.baseSpeed //1
|
|
|
- const rate = runtime.basePlayRate; // 播放倍率
|
|
|
+ const rate = runtime.basePlayRate * runtime.originAudioPlayRate; // 播放倍率
|
|
|
console.log('评测倍率123',rate)
|
|
|
actualBeatLength = Math.round(detailState.times[0].fixtime * 1000 / rate)
|
|
|
const difftime = detailState.times?.[0]?.difftime || 0
|
|
@@ -389,7 +389,7 @@ const formatTimes = () => {
|
|
|
const item = times[index]
|
|
|
const note = getNoteByMeasuresSlursStart(item)
|
|
|
// const rate = runtime.speed / detailState.baseSpeed //1
|
|
|
- const rate = runtime.basePlayRate; // 播放倍率
|
|
|
+ const rate = runtime.basePlayRate * runtime.originAudioPlayRate; // 播放倍率
|
|
|
const start = difftime + (item.sourceRelativeTime || item.relativeTime) - starTime
|
|
|
const end = difftime + (item.sourceRelaEndtime || item.relaEndtime) - starTime
|
|
|
// console.log(start, end, starTime)
|
|
@@ -459,7 +459,7 @@ const connect = async () => {
|
|
|
const search = useOriginSearch()
|
|
|
connentLoading.value = true
|
|
|
const behaviorId = sessionStorage.getItem('behaviorId') || search.behaviorId || initBehaviorId
|
|
|
- const rate = runtime.speed / detailState.baseSpeed //1
|
|
|
+ const rate = runtime.basePlayRate * runtime.originAudioPlayRate; // 播放倍率
|
|
|
calculateInfo = formatTimes()
|
|
|
detailState.firstNoteTime = calculateInfo.firstNoteTime;
|
|
|
const content = {
|
|
@@ -483,7 +483,7 @@ const connect = async () => {
|
|
|
// beatLength: Math.round((RuntimeUtils.getFixTime(detailState.times[0].beatSpeed) * 1000) / rate),
|
|
|
beatLength: actualBeatLength,
|
|
|
evaluationCriteria: getEvaluationCriteria(),
|
|
|
- speedRate: parseFloat(runtime.basePlayRate.toFixed(2)), // 播放倍率
|
|
|
+ speedRate: parseFloat(rate.toFixed(2)), // 播放倍率
|
|
|
}
|
|
|
// console.log("🚀 ~ content:", content, rate)
|
|
|
const clientType = useClientType()
|
|
@@ -720,14 +720,14 @@ const evaluatStart = () => {
|
|
|
RuntimeUtils.setCaptureMode()
|
|
|
}
|
|
|
console.log('开始录音', new Date().getTime())
|
|
|
-
|
|
|
+ const rate = runtime.basePlayRate * runtime.originAudioPlayRate; // 播放倍率
|
|
|
postMessage(
|
|
|
{
|
|
|
api: 'startRecording',
|
|
|
content: {
|
|
|
accompanimentState: SettingState.eva.mute ? 1 : 0,
|
|
|
firstNoteTime: calculateInfo.firstNoteTime || 0,
|
|
|
- speedRate: parseFloat(runtime.basePlayRate.toFixed(2)), // 播放倍率
|
|
|
+ speedRate: parseFloat(rate.toFixed(2)), // 播放倍率
|
|
|
}
|
|
|
},
|
|
|
() => {
|