HISE Logo Forum
    • Categories
    • Register
    • Login

    Remove steps from Sliders so that dragging is smooth no matter the range and values

    Scheduled Pinned Locked Moved General Questions
    9 Posts 4 Posters 100 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DanHD
      DanH
      last edited by

      Is it possible to have a smooth motion to moving knobs and sliders rather than them moving in steps according to what their range is set to?

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @DanH
        last edited by

        @DanH no that would require some hacking in the JUCE slider class internals. What are you after here?

        DanHD 1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @Christoph Hart
          last edited by

          @Christoph-Hart oh really? I'm just after a continuous and smooth action. One thing that has always bugged me about having a frequency slider is the jump from 20-21Hz which is about 1/6th of the slider's range 😆

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          Oli UllmannO d.healeyD 2 Replies Last reply Reply Quote 0
          • Oli UllmannO
            Oli Ullmann @DanH
            last edited by

            @DanH
            Couldn't you solve this programmatically? Here's an example:
            The parameter you want to control has 10 values, from 0 to 9. Couldn't you just use a slider with a continuous value from 0 to 100 and then do something like this:
            If the slider value is 0 to 9, then the parameter value is 0.
            If the slider value is 10 to 19, then the parameter value is 1.
            And so on...
            Or have I misunderstood something?

            1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @DanH
              last edited by

              @DanH Change the step size in the property editor

              Peek 2025-07-24 15-33.gif

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              Oli UllmannO DanHD 2 Replies Last reply Reply Quote 1
              • Oli UllmannO
                Oli Ullmann @d.healey
                last edited by

                @d-healey
                Yes, that's easier than my suggestion! 😊

                1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @d.healey
                  last edited by DanH

                  @d-healey ha! Still jumpy 😆 . Think temposync as well. Anyway I was just hoping there was a simple 'off' mode for this, perhaps in the source but obvs not. Hacky solutions will lead to more hackiness in this project so will probably just leave it

                  Thanks though @Oli-Ullmann @d-healey

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @DanH
                    last edited by

                    @DanH Ah I see what you mean. If you skew a slider with the middlePosition attribute it starts to be very choppy at one end of the slider range. But that's just an arbitrary limitation set by the step size and for some reason I've deactivated the ability of setting the step size to zero.

                    I can add a new step size option 0.0 that completely removes the stepping, but then you definitely need one of the text converter modes (eg. Frequency or Decibel), or it will look like this:

                    934561f2-5090-4bcf-9c82-e87b52f31e7d-image.png

                    DanHD 1 Reply Last reply Reply Quote 7
                    • DanHD
                      DanH @Christoph Hart
                      last edited by

                      @Christoph-Hart works for me 😄

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      17

                      Online

                      1.8k

                      Users

                      12.2k

                      Topics

                      106.0k

                      Posts