|
@@ -341,7 +341,7 @@ public class UserChannelContext {
|
|
|
amplitude = (int) Signals.norm(samples);
|
|
|
}else if(StringUtils.equalsIgnoreCase(evaluationCriteria, EvaluationCriteriaEnum.DECIBELS.getCode())){
|
|
|
amplitude = (int) Signals.decibels(samples);
|
|
|
- amplitude = amplitude >= 50 ? amplitude : 0;
|
|
|
+ amplitude = amplitude >= 60 ? amplitude : 0;
|
|
|
}
|
|
|
//float rms = Signals.rms(samples);
|
|
|
|
|
@@ -911,6 +911,7 @@ public class UserChannelContext {
|
|
|
boolean isContinue = true;
|
|
|
int firstPeakIndex = -1;
|
|
|
int peakSize = 0;
|
|
|
+
|
|
|
for (int i = 1; i < chunkAmplitudeList.size(); i++) {
|
|
|
if (Math.abs(chunkAmplitudeList.get(i) - chunkAmplitudeList.get(i - 1)) < hardLevel.getAmplitudeThreshold()) {
|
|
|
continue;
|
|
@@ -939,6 +940,7 @@ public class UserChannelContext {
|
|
|
tempo = true;
|
|
|
}else{
|
|
|
tempo = false;
|
|
|
+ LOGGER.debug("有多个波峰");
|
|
|
}
|
|
|
|
|
|
if (tempo) {
|