# Stepped Slider with limited range

**URL:** <https://forum.juce.com/t/stepped-slider-with-limited-range/67350>\
**Category:** Development\
**Created:** [October 15, 2025, 9:48am UTC](https://forum.juce.com/t/stepped-slider-with-limited-range/67350 "2025-10-15T09:48:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlemilhald](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@karlemilhald](https://forum.juce.com/u/karlemilhald)\
**Post date:** [October 15, 2025, 9:48am UTC](https://forum.juce.com/t/stepped-slider-with-limited-range/67350/1 "2025-10-15T09:48:44Z")

</div>

Hi everybody.

I’m working on a SSL-style bus compressor and I want to limit the sliders range around 12’o clock with predetermined step sizes (steps are the same distance from each other no matter the amount of steps on the knob) - which will make each knob have a varied range depending on the amount of steps.

However, I can’t seem to center it around the middle - it ALWAYS ends up on the left side. Anyone been in the same situation who might have a fix for this?

---

<div class="post-metadata">

**Author:** ![icebreakeraudio](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/icebreakeraudio/32/10446_2.png) [@icebreakeraudio](https://forum.juce.com/u/icebreakeraudio)\
**Post date:** [October 15, 2025, 10:32am UTC](https://forum.juce.com/t/stepped-slider-with-limited-range/67350/2 "2025-10-15T10:32:28Z")

</div>

The centre position _should_ be in the middle if the number of values is odd.

You can use `setRotaryParameters()` to set the start and end angle for a slider, which might help to put the values in the right place.

It’ll be easier to give you better advice with a snippet of code and/or a screenshot of the problem.

---

<div class="post-metadata">

**Author:** ![Mrugalla](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mrugalla/32/13092_2.png) [@Mrugalla](https://forum.juce.com/u/Mrugalla)\
**Post date:** [October 15, 2025, 4:33pm UTC](https://forum.juce.com/t/stepped-slider-with-limited-range/67350/3 "2025-10-15T16:33:18Z")

</div>

maybe you are just setting up the parameter incorrectly. when you make stepped parameters you can either let the normalized value relate to floored or rounded upscaled values
