Forum
    • Categories
    • Register
    • Login

    Integer knob value doesn't sets the effect but decimal value does?

    Scheduled Pinned Locked Moved General Questions
    14 Posts 3 Posters 640 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.
    • David HealeyD
      David Healey @orange
      last edited by David Healey

      @orange I think there is a built in thing to prevent cyclic reference when using .changed();

      cfa1aaa7-1402-462f-8c94-7d4250c2ae58-image.png

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

      orangeO 1 Reply Last reply Reply Quote 0
      • orangeO
        orange @David Healey
        last edited by orange

        @d-healey Yes cyclic reference tool doesn't detect that also, but as far as I know, it crashes in DAW.

        Is ther another way or is it a nested loop thing?
        If the .changed() is the only way, How can I use it?

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey @orange
          last edited by

          @orange What are you trying to do?

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

          orangeO 1 Reply Last reply Reply Quote 1
          • orangeO
            orange @David Healey
            last edited by

            @d-healey EQ - Comp - Preamp combination with Left - Right channels Link/Unlink processing.
            This snippet is the simplest prototype that has the core issue.

            When the user enters negative integer value to the knob, as you see it doesn't update the effect parameter (Simple Gain effect is the example here).
            But negative decimal value updates the effect.

            develop Branch / XCode 13.1
            macOS Monterey / M1 Max

            1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey
              last edited by David Healey

              Well you're playing with the knob ranges so it's probably not going to do what you want.

              This is a simple way to control two simple gains and have a link button, maybe it'll point you in the right direction.

              HiseSnippet 1184.3oc6X8taaaCDmxNLH1aoncXO.D4SxHsoxY8OaKanowIYvXMIFycYcHnHiVhJlKTjFRTYwqHOHYeZuF6a4QYOB6MXijhJRN0y0w.qaYH5KVGu6386ti7tStSrvm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Zg68fcnR+9iGuUFCdU2F9mFu1odVDl0lt.ryA29UuGFwoRIrrvkygdYiL6bnklcn4e2bnWnqBsIggGI.9cz.Y+RWFVeLSp1lehpPSGACGe0ve0Q84pSmO+NlzbxmQLWstwbl9iflP9MI.aNRbyAv2E1A+egCDeiHUR4GsCVMtotSwtoQcUetlOQAUNmvRzcipnmIIi1SSqATWBOvP7mpGKylZZGKyl4LAW2hAqdawfaKFbawf+eVL38gMhv9whC8y9zE8UyELqn7at4edpFbGMM5xO3AB8VwSOfL8Pee8TROPEeFuNqNC57IyfNOZFz4wyfNOYFz4oyfNe5D0Q+mv87ToHJ67uZgNaY9xQGms3X0IYyUAveE5zb9H
              

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

              orangeO 1 Reply Last reply Reply Quote 1
              • orangeO
                orange @David Healey
                last edited by orange

                @d-healey Could it about the logic of the "loop"? Because I only used < and >. Not >= or <=.

                develop Branch / XCode 13.1
                macOS Monterey / M1 Max

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @orange
                  last edited by

                  @orange I don't see why the loop would affect it, I still don't understand what you're trying to do though. The simplest solution is to use the knob ranges and to control them like in my snippet.

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

                  orangeO 1 Reply Last reply Reply Quote 1
                  • orangeO
                    orange @David Healey
                    last edited by orange

                    @d-healey

                    Yeah that's a good way too, but I will have to rewrite the code. There should be shorter Solution. Maybe If loop

                    if ((arrayed_Knob[i].getValue()) > arrayed_Knob_values[j] && (arrayed_Knob[i].getValue()) < arrayed_Knob_values[j+1])
                    

                    develop Branch / XCode 13.1
                    macOS Monterey / M1 Max

                    orangeO 1 Reply Last reply Reply Quote 0
                    • orangeO
                      orange @orange
                      last edited by orange

                      @orange Ok I figured it out. there should be >=. Thank you @d-healey for your help and advises

                      if ((arrayed_Knob[i].getValue()) >= arrayed_Knob_values[j] && (arrayed_Knob[i].getValue()) < arrayed_Knob_values[j+1])
                      

                      develop Branch / XCode 13.1
                      macOS Monterey / M1 Max

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @orange
                        last edited by ustk

                        @orange you need a >= instead of just > otherwise you miss values in the array

                        Hise made me an F5 dude, browser just suffers...

                        orangeO 1 Reply Last reply Reply Quote 1
                        • orangeO
                          orange @ustk
                          last edited by

                          @ustk Yes, definately 👍

                          develop Branch / XCode 13.1
                          macOS Monterey / M1 Max

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

                          36

                          Online

                          2.1k

                          Users

                          13.0k

                          Topics

                          113.0k

                          Posts