HISE Logo Forum
    • Categories
    • Register
    • Login

    Setting Custom Knob Ranges

    Scheduled Pinned Locked Moved General Questions
    19 Posts 5 Posters 995 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 @trillbilly
      last edited by

      @trillbilly Post a snippet

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

      trillbillyT 1 Reply Last reply Reply Quote 0
      • trillbillyT
        trillbilly @d.healey
        last edited by trillbilly

        @d-healey

        Here is a quick snippet.

        is you leave the "Value" part as just "Value" then they are free range. If i try to put a value (like .5 in the snippet) then it is a stationary value and cant be changed by the Master knob.

        Another thing Im curious about is when you get the ranges set for Master Knob, how do individual knobs function? Will they be able to freely be changed but once Master is used they jump to that setting?

        HiseSnippet 1132.3oc0W0raaaDDdorYRjRiQBPNjiD9jLfiiTcRZALBDikrZE7OQvxMw8TxJxQVKD4trjqbhRQ.5w9Jja80nOG4En.8Tu02f1YWRJtxlwvPEs.UGDzN+seyry7sq5GK7fjDQLwp5Iyh.h0WXOXFWNt8XJiS50gXsl8gzDID6jJZ2YQzjDvmXYsx2nDXUcUh9ye1ZWZ.k6AEhHjWJXdvArPlrPZe28YAAco9vIrPCqeraOOAusHPLEwyJ1MHQTuIzyfinJypXSrtwd9LoHdfjJgDh0p6J7mMXr3s7T6eIKgML.TKZRFfAJUbWQfuBwJoj1iYA98yy6DBFk9EUgURqB229PlOat7hpwc0JbJ7vrdXU4pfWSS30nT30nL3YY.uUSg28rG3EyhjEZTX611833A0HJdDXBqTaIUBqX2VfVvkaERm.ciwEy8n9SazXSG7qM1oVsG8nCwD1o6oN6yECcTdEKBRP4soAANiDwNvnQfmLoFdhkHcNmF6zABnyZ57LGcCzVmAx8z1Te8TMqiQtv5igyg3gkZdlp0SQR2odbISv06pFNOzYNJRcIGf0X7.FGbFMk6ocQvU4Q2S2mOrYlM08DgQBNVD1DwQvTXiZ+XspoHbqDP9boLlMbpDpmI6P161zowVOAQS0Ljsnc4BeEHO.+YPdb2o1GzIfYITi7V0xOFvjtcNbpudAVWeC0Vj4ixkg3fP8RxlM1wHWORHgWvqqSnZenlyEUMZTo5xBU.DWpZ0LZ7U4Xc9zvgPrY4TYH1rt3zvM97SClCqdo0FCCE7dbl7EQP15qdbljUbUSNYHDMUpmaVKatYP.yGhILeEeWQQkny.SFMx20qCURyiEFVbqhfXISkQVcfyQ5szYxp1cfjIRQDtayOTwhv0ame27c08Mtylu3mntDifcyOavtistcE6AmvGZDs2jXDMx26FkWo54qYTSnmC838iAreSwUfyOS.+SDW.dWOPrlc5rvkPAQZfBWXoQwkYBQ9Xg+z.pbQRZ0MSYJvd0EXCULd7Dlbl447+Xl6R6Dulv8d18YRuwki2JkfWrc7ea7lcO3crSYXK.6p1cOcYuzq40+RuJFX41oX4los3ZTbqze2bAjnEonqN.FY7biG3NWwwryFan49tcAvWwsZ3g61a+oV4xMcPq3.wa6iaX2X3GlGme9SteK6RRIcbwqNJV9asNAvYH71NuE57VYwx2JWuxWImdGKlJY7yNjhWLg6q8QSCGfujxCvCONGBvfaaUQQPlttgZsBDC.tudwegexT1Ts1JSYybklcHYuWDoAXgQAP5ju9voZFMvhmNGKDgCXuOmd8W93G+iVcngQHjKJv+dq7aQMqQchmcAYDxqX9xwlwBK9v6AbHxXG90+mUd+uXOBodwhW6k8jNbT6VZIXdy0OytJx3hqcleanscisZPBwm89ZOOEAvCQxix84KWBe1dI74wKgOOYI74oKgOe0R3yWek9n9GGOepTDld4.Jn+d5WkXYsGmhcu54KxeCODVw5.
        
        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @trillbilly
          last edited by

          @trillbilly You probably need to be using setAttribute instead of linking the knobs through the property editor. This will allow you to manipulate the values in any way you like before they are passed to the other knobs. I made a video which covers some of this.

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

          trillbillyT 1 Reply Last reply Reply Quote 0
          • trillbillyT
            trillbilly @d.healey
            last edited by

            @d-healey Ok, great, Ill look into this tomorrow when Im back to the studio.

            As for Ranges in that particular way, is it not possible then?

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

              @trillbilly said in Setting Custom Knob Ranges:

              As for Ranges in that particular way, is it not possible then?

              When you link knobs through the property editor you lose the ability to set individual min/max values for them.

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

              trillbillyT 1 Reply Last reply Reply Quote 0
              • trillbillyT
                trillbilly @d.healey
                last edited by

                @d-healey If I didnt link them via property editor and only used the script, could I then set the values?

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

                  @trillbilly Yes, but you'd then need to use setAttribute() to handle all the communication between the knobs and parameters - as you'll see in the video :)

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

                  trillbillyT 1 Reply Last reply Reply Quote 0
                  • trillbillyT
                    trillbilly @d.healey
                    last edited by

                    @d-healey Lol. Getting ahead of myself. Thanks, will check it out tomorrow.

                    Matt_SFM LindonL ustkU 3 Replies Last reply Reply Quote 0
                    • Matt_SFM
                      Matt_SF @trillbilly
                      last edited by Matt_SF

                      @trillbilly But if that's what you want, with simple maths you'll be able to do :

                      When Knob1 moves from 0 to 1, Knob2 moves only from 0 to 0.5...
                      

                      Develop branch
                      Win10 & VS17 / Ventura & Xcode 14. 3

                      1 Reply Last reply Reply Quote 0
                      • LindonL
                        Lindon @trillbilly
                        last edited by

                        @trillbilly so as a hint: in psudo code:

                        range1 = knob1.max - knob1.min
                        percent1 = range1/100
                        knob1currentprecent = (range1.value - range1.min)/percent1

                        now you know what percentage of its possible value Knob1 is currently set to...

                        HISE Development for hire.
                        www.channelrobot.com

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

                          @trillbilly Or just use getValueNormalized and setValueNormalized, they are made for this use case.
                          The conversion is automatically made for you, free of charge :)

                          This way they are always exchanging 0-1 based values, hence the term normalised.

                          Note that you have to set the middle point to something else than -1 or Hise will complain...

                          HiseSnippet 1198.3ocsWEraiaCDkxwLcsSS1jz.zC8hvdxAcqgs2sYaQPQRriSaZ1jHDkMXusfQh1lHRjpRTowsXA1S86neA82nW6sdseB8OncnjrkbhrirQqNH.NCey7H4LCGZ3KrnAABejVkKG5QQZeL1bHWNny.BiiN9Pj1Z3SIARpudrn1C8HAATajl1ReqRfVkxnnu+du1DGB2hlJBgtRvrnul4xjoRM1+DliyQDa5kL2Ly9k6erkf2Q3HBA9rDtAxiXcCoO8LhZZkvHsk6ZyjBeSIQRCf4zVXOzbf3G4wy+JV.6ZGpZPSjIXnXwnNCXN1FiVqAHjVYizU9Rwq7svmxrYikmtCrdjB8TDY2CzJMIkJOAkZNMJcjvwVYfoPuRYnW4X5sA1zxm4IS0n31J3i4vgSOBrsmkVwyEU5WJg6HfYvk0cI2POxGFLFQscZz345vus2sZUXqOPpeKwW+Dt35l5ei9Hf8oxNBWOAGFT6YQZeFfXR.slIfVJ.Uqx3NLNUuWH2RxDbcAOxZJb9BmZVi.8bvrNgzsq9yUqDAud.UdkRzYBeWhC6mn1oyV4u6qbaveIPsFP38Uh1s562sZjCUlKwocHNNWCgY0ljKQzcJ7s0ix2lKNealCeaMc91ZB9lgnmIjzy40hnT02WU+9p50KWcIlyg5mqZUBq+r.ViG5dM0O6FhZhPT7joIKWrzDq3HpLSTvOlyjm6QSFmlH0LmDITRHoJkJggvTkQITqkjPY5vro9HFXjOBGcDfhHeRgoOr0u8m6gJL3V2G7uuG5MGeHQR.NnkPGfhdTeISsSncH8VnFYbRdE7gzfajBuH9lDufzvOJiuabYzOP1eXZMU19tLaaGpgHfoNoR07WpE0XOr7itrR8vuJKlG9i8bI2MgCeXQ2UwG36Q62mQjIUzVKqjlSVqcoYU9uYwK+mIr3Sl1Ia6PoDVMpsf0vwrHQT1C33uBXiUwWPgr3IMAValvybJ7T7YgtlRpWhrwFnbAMvJXE5HNLGKfLFX8HCXdC6ATPqfaAfED9xSnCm+MxIWHdTpsJnLkBqjG30S.Cg4WKZKtKB9lXS5ODRg1TFKtXKjLTXU74VRxszKTEpm+yxJXyAg854PWrHoUvc4DHL+RFcZTubL3Mmv2FvsFQFXKXKvkcIj4mQwXK8Ovmspbk1mgatS87+lCecE0QXwjCKju584sOnd8u9jCqW+EgFwiKru1D+ZJuubPw7zMJOc02Cd5sBi3wELDZCLzaHmScLoNTKUcqYGAkqQ9T74gRuP4+AlZC7oFcgZh9iLVpQJUXi7TkQ5xsefIVufgkKi+N3p3bBoeXqrPC0B6PGUA9rcYqdNQhB08HYq7qZYkC2uLL6yMliVuajaq241wPAo6FXClzZP97sTN7U0Bx+y7c7cpc60ChlRIaY7QucQe0xbPkKDgRFu+oDoOCt3O5JK3sbPo13fpfQgjIiaLppoIka2XTZZhxliRBTJaNRIxkX4KdmUb7n5oROIRBvIdzqDq.OWEFqOtINLtQ8FHnGE16rrTaEeAv87wzZAv7hE.yKW.Le4BfYmE.yqV.Le0Lwnd77AgRgabZBHvnaT+vZZwWjEEQh9W7WjjpB
                          

                          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 said in Setting Custom Knob Ranges:

                            they are made for this use case

                            The API lies to me!

                            e910ba74-a767-4a3f-a593-e0d9b8799603-image.png

                            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 ustk

                              @d-healey lie in what way? (limited English warning :) )

                              EDIT oh sorry I didn't see the GET isn't there...

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

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

                                @d-healey I'll have a look to correct this in a moment...

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

                                trillbillyT 1 Reply Last reply Reply Quote 0
                                • trillbillyT
                                  trillbilly @ustk
                                  last edited by

                                  @ustk Thanks! I can get the snippet to work with your 2 knobs, but when I create my own they no longer work. I'll keep trying.

                                  When you say "middle position set to -1" what do you mean? I am looking at the knobs you created and in the Property Editor your knobs both have different values than -1. Am I missing something?

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

                                    Am I missing something?

                                    @trillbilly Re-read what @ustk wrote...

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

                                    trillbillyT 1 Reply Last reply Reply Quote 0
                                    • trillbillyT
                                      trillbilly @d.healey
                                      last edited by

                                      @d-healey yes, I see it now. I checked out your videos and the advice of others here and was able to get the knobs working using the "setValueNormalized" function.

                                      Now working on getting different fx modules to work together correctly.

                                      For example, I have a Tempo Synced Delay and Reverb. The "Master Knb" is set to control both the Delay R and L Time (Tempo Synced) and the Reverb Room Size + Wet Knob. The knobs all work correctly unless I change the range of the knobs being controlled to something less than half of the full range, then they no longer work. Also, they are kind of jumpy and do not slide at the same rate (which isn't the biggest issue but would be nice).

                                      Sorry, my explaining is horrible.

                                      I know, getting ahead of myself again. I will continue with your videos and scouring the forum/documents for demo materials.

                                      Thanks again.

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

                                        @trillbilly It will be hard without a snippet

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

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

                                        35

                                        Online

                                        1.8k

                                        Users

                                        12.0k

                                        Topics

                                        104.1k

                                        Posts