HISE Logo Forum
    • Categories
    • Register
    • Login

    how to link button to reverb parameter

    Scheduled Pinned Locked Moved General Questions
    14 Posts 4 Posters 555 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 @Sawer
      last edited by ustk

      @nesta99 Here you go:

      HiseSnippet 1616.3oc2X0raaaDDlzxrHVoJnoHoMGWXz.HgD6H57SKfQgkskbhPhrErRrK5kfUjqjVXxcEHW5eRP.5SQA7s7ZzSIW6s9HDfdp25aP6rbIMWZI6nJij1FdvPyO6reyryNyrtc.2gDFxCLLm6oGMjXX94VcNhIFr9.LkYzrtg4UrZgCEj.jh0ZGMDGFRbMLMK7PICy4l0H96OWYMrGl4PxXYXrCm5PdB0mJx31t1ioddafcIOk5qo88p0zgyVm6wi.7TvppwPryd39jMwR0lwxv7yZ3RE7fNBrfDZXN6Zb2i5Lfe.So+NzPZWOhjv1nCXHE6M3dtRDK+sw5CndtsS86PCCSq1YQgBpnv0rZQcomvOKZ7EwBPYqPOdXNy4AOac3UcxgmoF7lUAuqZ0wIfNTjIQhsKa0jAGT8vvQfNrT5ZLyOZYsNGzfIVzGuGYi.f3jUT9AUqdaz8qVsxxkJVpHbPDJP6iCPcn9C8HaS1mDz0F88n3ziE6SDM50i3HJOuRAThFyKWe1pOfHTBdD00kvdLqKXhTT.FYct+PNCHJO+npNuBKkJdm6fZxbBH3PBZMAqTQJyixHndQLGAkyPbFMQNHVZ9.tWYmTaea.JdQjJkJ9xREQvGsGpbJKTxmy.LqehetKQ7D3GdkqtnckkQHX+ukc0aVp3q..Mdzqs+yWYwPorXTrN1yqKjFWdbPL0+h8v5jy2CcISnGN2D6dKn7OXyW383dZa9Y4dihuL26zdyXQC1mGwDYmRdbGrGhQNXGr2xJVp+B3cUWWjfiHGRCETVeEekpPB1noRR2YGYHobEzsPpc5z1LtLkzpUWv9TFrEFx4CjXtrh2sQvs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Av6DykArMAJOzuOIWh0XcHX3aXF5LNWq11DO4HGYr9lZOAl4GGnUT6eZrvdxiEm240MrTvEIKNf9znUdgOgZk+g3FJT+7+OmzesETSeIT7wM5e+y6OFCK7wXO7wNA7m6ndLorfwkh4.9MK9+x6bVsjzH6zGNZYUcwpx2LPetiiLmdAH9L90rzTrl6NEq4dSwZt+TrlGLEq4amh07cm6Zjc7WMRv8U4+.i1Mhe.uooZBn3qBF+MvgQrFF
      

      Note that I use a hidden knob so the value can be saved in presets. So the inc/dec buttons are not directly setting the reverb, but they are updating the hidden knob, which then sets the reverb amount.

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

      S 2 Replies Last reply Reply Quote 1
      • LindonL
        Lindon @Sawer
        last edited by

        @nesta99

        currentValue = SimpleReverb1.getAttribute(SimpleReverb1.WetLevel);
        

        this tells you what it is right now , then add to your increment to this (checking that you havent reached the max value)

        SimpleReverb1.setAttribute(SimpleReverb1.WetLevel, curretnValue + myIncrementAmount);
        

        HISE Development for hire.
        www.channelrobot.com

        S 1 Reply Last reply Reply Quote 0
        • S
          Sawer @ustk
          last edited by Sawer

          @ustk Thanks!! Sorry but I'm new to scripting and I don't understand this Hise snippet here , (ahaha so embarrassing !) .But yes, I tried to copy and paste it on the script but nothing happened.

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

            @nesta99 Go to file >> import hise snippet.

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

            S 1 Reply Last reply Reply Quote 0
            • S
              Sawer @ustk
              last edited by

              @ustk Finally copied. Thanks for the time. You are a Genius. Now I can Understand the concept behind what you did!! Thanks again!!!!

              1 Reply Last reply Reply Quote 0
              • S
                Sawer @d.healey
                last edited by

                @d-healey Thanks so Much David!!!

                1 Reply Last reply Reply Quote 0
                • S
                  Sawer @Lindon
                  last edited by

                  @Lindon Thanks sooo much , super grateful!

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

                    @nesta99 The concept is that the two buttons are calling the same function, one with +10% as a parameter (amount), the other with -10%.
                    You need to use +0.1 and -0.1, because, in Hise, NormalizedPercentage sliders are in fact 0-1 based by 0.01 increments...

                    The function called has a variable newVal that takes the current reverb level wetReverbHiddenKnb.getValue() (which is in fact the hidden slider value) and adds the amount parameter (so +0.1/-0.1) to it.
                    Then newVal is limited to the 0-1 range (0-100%) so you don't risk having weird values like 130% or -50%...
                    newVal is then applied to the slider that is hidden on the interface wetReverbHiddenKnb.setValue(newVal);.
                    At this stage, the reverb hasn't changed yet.

                    Knowing that the variable newVal is volatile, this is the reason you need to use a dummy slider on the interface. So this slider can save/recall the reverb value with presets (in fact not the reverb value but the slider value, which is not the same thing). If you simply set the reverb amount using the local variable newVal, this cannot be saved in preset (only interface components can). This is why it is the job of the slider to set the reverb amount via its own callback. This slider callback is called either by the function via wetReverbHiddenKnb.changed(); or automatically when you switch presets...

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

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sawer
                      last edited by Sawer

                      @d-healey @Lindon @ustk
                      https://youtu.be/h67Och427iA
                      Guys I've been trying figuring out how to link this 2 sliders to the parameter and I've been accurately followed your instructions but still can't do it... The worst part is that i do know the concept but i can't implement it in the script. I need help

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sawer
                        last edited by Sawer

                        !!Solved!! After Trying all the night I've made it...

                        Console.print(this.getValue());
                        var interValueA = this.getValue()/120;
                        Ambience.setAttribute(Ambience.WetLevel, interValueA);
                        Now, the moment that i raise the slider, the wet level of the reverb rises. Thanks @Lindon , the code was perfect. Just that i didn't know how to implement it in this scenario. Totally new to coding/scripting so this achievement means a lot to me.

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

                        25

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.4k

                        Posts