update heatmap settings in spectrum

This commit is contained in:
Boof2015
2026-04-05 15:54:20 -04:00
parent 07837949d7
commit e2e2ab388e
12 changed files with 472 additions and 40 deletions
+1
View File
@@ -83,6 +83,7 @@ export function scopeSettingsToOptions(
tiltDbPerOctave: s.tiltDbPerOctave,
heatmapFill: s.heatmap,
heatmapTiltDbPerOctave: s.heatmapTiltDbPerOctave,
heatmapSmoothing: s.heatmapSmoothing,
showGrid: s.showGrid,
fillGradient: s.fillGradient,
smoothing: s.smoothing,
@@ -264,6 +264,18 @@ export default function ScopeSettingsSection({
onChange={(value) => onUpdate('spectrum', { heatmapTiltDbPerOctave: value })}
/>
<RangeControl
label="Heat Smoothing"
value={current.heatmapSmoothing}
valueLabel={current.heatmapSmoothing.toFixed(2)}
min={0}
max={0.99}
step={0.01}
fullWidth={false}
disabled={!current.heatmap}
onChange={(value) => onUpdate('spectrum', { heatmapSmoothing: value })}
/>
<RangeControl
label="Smoothing"
value={current.smoothing}