feat: tune multi-source peak sensitivity
This commit is contained in:
@@ -347,6 +347,16 @@ function validateExperimentRelationships(value, context = {}) {
|
||||
exclusiveMin: true,
|
||||
});
|
||||
}
|
||||
if (value.evaluation !== undefined && requireRecord(value.evaluation, "$.evaluation", issues)) {
|
||||
const threshold = value.evaluation.detectionThresholdRatio;
|
||||
if (!isFiniteNumber(threshold) || threshold <= 0 || threshold > 1) {
|
||||
addIssue(
|
||||
issues,
|
||||
"$.evaluation.detectionThresholdRatio",
|
||||
"피크 검출 임계값 비율은 0보다 크고 1 이하여야 합니다. 더 약한 피크를 찾으려면 값을 낮추세요.",
|
||||
);
|
||||
}
|
||||
}
|
||||
if (context.arrayDefinition && context.scene) {
|
||||
const retainedBufferCount = context.arrayDefinition.microphones.length + context.scene.sources.length + 1;
|
||||
const sampleCount = Math.ceil(context.scene.duration * context.scene.sampleRate);
|
||||
|
||||
Reference in New Issue
Block a user