feat: tune multi-source peak sensitivity

This commit is contained in:
Codex
2026-08-28 16:30:01 +09:00
parent a54aa25cd9
commit 7cd737429a
9 changed files with 119 additions and 3 deletions
+10
View File
@@ -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);