mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-16 08:10:40 +02:00
update heatmap settings in spectrum
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user