HISE Logo Forum
    • Categories
    • Register
    • Login

    Sliderpack issue again

    Scheduled Pinned Locked Moved Bug Reports
    16 Posts 3 Posters 636 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.
    • d.healeyD
      d.healey @crd
      last edited by d.healey

      @crd Actually your snippet works just fine here. The problem is your index is always 0 but I think that's a separate issue.

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

      C 1 Reply Last reply Reply Quote 0
      • C
        crd @d.healey
        last edited by

        @d-healey Are you sure? Sometimes it works here but sometimes it doesn't.

        It works correctly when changing the midi processor slider pack, but when changing the knobs on the interface it does not update the scriptFX parameters.

        C d.healeyD 2 Replies Last reply Reply Quote 0
        • C
          crd @crd
          last edited by

          sliderpackissue.gif

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

            @crd Check that your index is correct.

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

            C 1 Reply Last reply Reply Quote 0
            • C
              crd @d.healey
              last edited by crd

              @d-healey Got it. I see what you mean.

              local index = g_data1.getCurrentlyDisplayedIndex();
              

              returns zero always when being triggered from the interface.

              I'm surprised all the knobs don't then change the first parameter of the scriptFX?

              Is there a better way to get the index?

              C 1 Reply Last reply Reply Quote 0
              • C
                crd @crd
                last edited by

                In other words, is something broken? Or am I doing something wrong in the code? Possibly both?

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

                  @crd Something is broken but I don't think it's related to what you're doing, I think you have a code issue.

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

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    crd @d.healey
                    last edited by crd

                    @d-healey It works correctly if I call it in a loop like this:

                    HiseSnippet 1706.3oc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MT8.4Ub06lVz5.rsc5Q.TNudLO1iccQFzOBNow30Y0YPm0lAct4Lny5yfN2ZFz4imAc9jKUG7ws1puTzSyUAczXWUxko4tbBPCqpgX7u.FXwRB
                    

                    That doesn't seem nearly as efficient or clean as what I had before but... it works.

                    Is it a bug that .getCurrentDisplayedIndex() returns zero in this context?

                    (also, .getNumSliders seems to be broken as well.)

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

                      @crd said in Sliderpack issue again:

                      Is it a bug that .getCurrentDisplayedIndex() returns zero in this context?

                      I'm not sure what that function's meant to do.

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

                      d.healeyD ulrikU 2 Replies Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @d.healey
                        last edited by

                        @crd Regarding the index for your function, that's what the value parameter gives ;)

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

                        C 1 Reply Last reply Reply Quote 0
                        • ulrikU
                          ulrik @d.healey
                          last edited by

                          @d-healey said in Sliderpack issue again:

                          @crd said in Sliderpack issue again:

                          Is it a bug that .getCurrentDisplayedIndex() returns zero in this context?

                          I'm not sure what that function's meant to do.

                          Skärmavbild 2022-02-26 kl. 21.26.32.png

                          Hise Develop branch
                          MacOs 15.3.1, Xcode 16.2
                          http://musikboden.se

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

                            @ulrik Yeah I read that. Still don't know what it does. All the sliders are displayed at once :)

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

                            1 Reply Last reply Reply Quote 0
                            • C
                              crd @d.healey
                              last edited by crd

                              @d-healey Got it!

                              Thank you. That is what I was using .getCurrentDispayedIndex for which was incorrect.

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

                              13

                              Online

                              1.7k

                              Users

                              11.9k

                              Topics

                              103.6k

                              Posts