control-range-must-cover-stored-values
Installation
SKILL.md
A control's range is a claim about its input
valueRange is not a styling choice. It is an assertion that every value the control will ever be
handed lies inside it — and the control is handed values by import, restore, migration and the
previous version of your own code, not only by the user's finger.
/**
* Deeper than the ±12 dB the bands span, because an imported profile's own trim is computed from
* the summed response rather than from its tallest band, and so goes past −12: the lowest across a
* sample of sixty published profiles was −12.1 dB.
*/
private const val PREAMP_MIN_DB = -15f
Slider(value = draft ?: stored, valueRange = PREAMP_MIN_DB..0f, …)