|
@@ -11,6 +11,7 @@ import be.tarsos.dsp.io.jvm.AudioDispatcherFactory;
|
|
|
import be.tarsos.dsp.onsets.ComplexOnsetDetector;
|
|
|
import be.tarsos.dsp.onsets.OnsetHandler;
|
|
|
import be.tarsos.dsp.pitch.PitchProcessor;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.ym.mec.biz.dal.dao.SysMusicScoreAccompanimentDao;
|
|
|
import com.ym.mec.biz.dal.dao.SysMusicScoreDao;
|
|
|
import com.ym.mec.biz.dal.dto.MusicPitchDetailDto;
|
|
@@ -269,7 +270,7 @@ public class SoundServiceImpl implements SoundService {
|
|
|
//存储录音文件
|
|
|
String filePath_r = tmpDir + idGeneratorService.generatorId("sound") + "_r.wav";
|
|
|
|
|
|
- LOGGER.info("录音文件大小:{}MB, 保存路径:{}", record.getSize()/1048576f, filePath_r);
|
|
|
+ LOGGER.info("录音文件大小:{}MB, 保存路径:{}, musicXml信息:{}", record.getSize()/1048576f, filePath_r, JSON.toJSONString(musicXmlInfos));
|
|
|
|
|
|
BigDecimal oneHundred = new BigDecimal(100);
|
|
|
//总分
|
|
@@ -300,7 +301,7 @@ public class SoundServiceImpl implements SoundService {
|
|
|
//音准匹配误差范围
|
|
|
float intonationErrRange = 10;
|
|
|
//音准有效阈值
|
|
|
- float intonationValidDuty = 0.7f;
|
|
|
+ float intonationValidDuty = 0.8f;
|
|
|
|
|
|
//节奏匹配数量
|
|
|
float cadenceNum = 0;
|