HISE Logo Forum
    • Categories
    • Register
    • Login

    Panel - Send Value on Drag

    Scheduled Pinned Locked Moved General Questions
    12 Posts 2 Posters 536 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

      @Christoph-Hart I see this is a newish option for sliders and buttons but is there an option for Panels and if not could there be one please, since panels are now becoming the new sliders / buttons 😆

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

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

        @DanH said in Panel - Send Value on Drag:

        since panels are now becoming the new sliders / buttons

        They were the old sliders/buttons until we got laf. Why would you use a panel these days?

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

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

          @d-healey because it's more flexible and can do anything a button or slider can do? In any case I rarely use panels but I am doing so now for a certain purpose.

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

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

            @DanH said in Panel - Send Value on Drag:

            and can do anything a button or slider can do

            Right, but a button or slider will do it better 😀

            What's your use case?

            I think the mouse callback drag event already gives you the send value on drag behaviour.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

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

              @d-healey I'm setting loop points for a sampler.

              I wanted to be able to move the loop section as a whole - so the user sets the loop duration, then auditions that loop section at different areas of the sample.

              A Panel works well for it. But it continually changes the loop points of the sample map which looks a little janky on the ui and requires reloading of the sample map every time new values are set.

              A Cleaner method would just be to update the sample loop points when the mouse button is released (i.e when the user has 'set' the position). I guess I can use some form of 'clicked'...

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

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

                @DanH Have you seen the custom sample import demo project? It uses a panel to set loop points, no reloading required.

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

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

                  @d-healey Of course. Been using it for years, but I wanted a better ui for it. Possibly it didn't save the loop points in presets either which is also why I was using sliders to control start / end / xfade - I can't remember now.

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

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

                    @DanH said in Panel - Send Value on Drag:

                    Possibly it didn't save the loop points in presets

                    I think you can resave the sample map which will save the loop points, or if you want it specifically in the preset you could set the panel to saveInPreset - but then again I think it will always take on the value from the sample map.

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

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

                      @d-healey I seem to remember that being the case, yes.

                      So here's something I hadn't bargained for.... I've got panels that I'm dragging around and some will overlap. I've arranged them so the overlapping ones are 'on top' - I assumed this would mean that I could always access them with the mouse but if the panel at the 'bottom' is dragged it then seems to sit above the other panels and I can't click them....

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

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

                        @DanH I remember I ran into a similar issue on a project I was working on a while back. I instead made it so I had different "lanes" for different actions. In this gif I have a loop lane above the waveform, and a notes lane below.

                        Peek 2025-04-14 12-51.gif

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

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

                          @d-healey Yes I made lanes too originally. Now my 'move the loop' panel sits on top of everything 😆 Its the most intuitive way so I'll keep at it for a bit. I need to perhaps find a way of reducing the width of the panel.

                          Is there a way to define the 'clickable' area of a panel?

                          ezgif.com-video-to-gif-converter.gif

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

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

                            @DanH Not directly but within the mouse callback you can check the position of the cursor and ignore clicks outside of the boundary you want to set.

                            Free HISE Bootcamp Full Course for beginners.
                            YouTube Channel - Public HISE tutorials
                            My Patreon - HISE tutorials

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

                            18

                            Online

                            2.0k

                            Users

                            12.7k

                            Topics

                            110.3k

                            Posts