fix: preserve portable PHAT score semantics

This commit is contained in:
2026-08-28 20:26:31 +09:00
parent d58f673402
commit 9b9244be85
2 changed files with 4 additions and 1 deletions
@@ -248,7 +248,9 @@ export function detectBandPeaks(rawMap, scan, options = {}) {
position: [...peak.position],
rawValue: peak.value,
rawScale,
...(rawScale === "power" ? { rawPower: peak.value } : {}),
...(rawScale === "power"
? { rawPower: peak.value }
: { rawScore: peak.value }),
});
if (detections.length === peakDetection.maximumDetections) break;
}