HISE Logo Forum
    • Categories
    • Register
    • Login

    ExternalData SliderPack seems to be limited to 128

    Scheduled Pinned Locked Moved C++ Development
    13 Posts 2 Posters 292 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.
    • ustkU
      ustk
      last edited by ustk

      @Christoph-Hart I need 512/1024 for normalised interpolation and getting mayhem when going above 128.

      Haven't found anything in the source code... 🤔

      Can't help pressing F5 in the forum...

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

        @ustk I'm using more than that here, got a snippet?

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

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @d.healey
          last edited by

          @d-healey In C++ Third party node ExternalData ? I can use more as well within Hise script but apparently not in C++. But I haven’t tested in SNEX (which is probably the same anyway)

          Can't help pressing F5 in the forum...

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

            @ustk Ah sorry, I was thinking of slider pack data objects

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

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

              Actually it affects sliderpack data objects as well - I'm sure it never used to.

              const sliderPack = Content.addSliderPack("Sliderpack", 10, 100);
              sliderPack.set("min", 0);
              sliderPack.set("max", 100);
              sliderPack.set("stepSize", 1.0);
              sliderPack.set("sliderAmount", 200);
              sliderPack.showControl(true);
              
              const sliderPackData = Engine.createAndRegisterSliderPackData(0);
              sliderPack.referToData(sliderPackData);
              
              sliderPack.setSliderAtIndex(127, 10);
              Console.print(sliderPack.getSliderValueAt(127)); // 10
              
              sliderPack.setSliderAtIndex(128, 10);
              Console.print(sliderPack.getSliderValueAt(128)); // 1.0
              

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

              ustkU 1 Reply Last reply Reply Quote 1
              • ustkU
                ustk @d.healey
                last edited by

                @d-healey Oh good one! or bad one...
                This explains the issue I have, I'm pretty sure it's a data object that is passed to the ExternalData so that object limitation has a good chance to be the root cause

                Can't help pressing F5 in the forum...

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

                  @ustk Have you made a github issue?

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

                  ustkU 2 Replies Last reply Reply Quote 0
                  • ustkU
                    ustk @d.healey
                    last edited by

                    @d-healey I'm trying to fix the issue atm, but it's not looking easy...

                    Can't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 1
                    • ustkU
                      ustk @d.healey
                      last edited by

                      @d-healey adding sliderPack.setUsePreallocatedLength(200) to your code seems to work.
                      I still have to test with my particular case

                      I have seen in the source code a preallocation limit of 128 when in backend. This limit might not be sticking around in the binary, I have to test it.

                      Can't help pressing F5 in the forum...

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

                        @ustk oh interesting, I wasn't aware of that function

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

                        ustkU 2 Replies Last reply Reply Quote 0
                        • ustkU
                          ustk @d.healey
                          last edited by

                          @d-healey But it doesn't fix my problem... Opening an issue

                          Can't help pressing F5 in the forum...

                          1 Reply Last reply Reply Quote 0
                          • ustkU
                            ustk @d.healey
                            last edited by

                            @d-healey Ok it's definitely buggy... I just made it to work by using the preallocation thing, removing it, and setting the nb of sliders manually, and after a restart it's gone again...

                            Can't help pressing F5 in the forum...

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

                              @ustk Yeah it's giving me super weird behaviour too, and it seems like the data objects have a "memory" so even when you change the number of sliders it shows a previous number that was being used.

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

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

                              28

                              Online

                              1.7k

                              Users

                              11.8k

                              Topics

                              102.8k

                              Posts