HISE Logo Forum
    • Categories
    • Register
    • Login

    Setting Custom Knob Ranges

    Scheduled Pinned Locked Moved General Questions
    19 Posts 5 Posters 994 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.
    • 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.zC8hvdxAcqgs2sYaQPQRri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HL+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

                              21

                              Online

                              1.8k

                              Users

                              12.0k

                              Topics

                              104.1k

                              Posts