HISE Logo Forum
    • Categories
    • Register
    • Login

    Knob 2 value

    Scheduled Pinned Locked Moved General Questions
    16 Posts 2 Posters 447 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
      last edited by d.healey

      First thing you need to do is set the range of the knobs. You've set knob 1 to have a range of 0 - 7, so it's not possible for it to ever be -7

      Tell me the ranges you want for all 3 knobs.

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

      1 Reply Last reply Reply Quote 0
      • Y
        yall
        last edited by

        @d-healey i used "SPG.setAttribute(SPG.Gain, -value);" for invert the value this can make a difference? I'm going to try

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

          What range do you want for each knob?

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

          1 Reply Last reply Reply Quote 0
          • Y
            yall
            last edited by

            @d-healey
            Knob 1 must act on the simmle gain from -7 to 0, and Knob 2 is set to shape fx, so the mix button 0 to 1.
            They work separately but once connected by Knob 3, which is set from 0 to 1, necessarily, Knob 1 cannot go above 1.

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

              @yall said in Knob 2 value:

              necessarily, Knob 1 cannot go above 1.

              If knob1 is limited to -7 to 0 then it can't ever go above 0.

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

              1 Reply Last reply Reply Quote 0
              • Y
                yall
                last edited by

                @d-healey the Knob1 is set to min0 and Max7.
                to give it its function (base the sound) I used -value on the recall of knob1. so all my knobs actually go in the same direction.

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

                  @yall Why is the range 0 - 7?

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

                  Y 1 Reply Last reply Reply Quote 0
                  • Y
                    yall @d.healey
                    last edited by

                    @d-healey because I want 7 as the maximum value.
                    but as I inverted the value in the reminder, it actually gives me -7db

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

                      @yall Let's try it another way. When knob3 is at 0 what value should knob1 be at? and when knob3 is at 1 what value should knob1 be at?

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

                      1 Reply Last reply Reply Quote 0
                      • Y
                        yall
                        last edited by

                        HiseSnippet 1210.3oc0X80aaaCDWxNLM1aonYXOtGD5SN.sARNsoCnXaZwNIyn4OB0cYaOkwHQaQDZRAI5jZTTf839XrOJ86v9hruAaGojrjRUbMRPKVcdQ7Nd286Nd2wiwKV3SRRDwFlsd0rHhg4WhFNiKC6EhobiA8MLuO5HbhjDakRZ2YQ3jDRfgoYyCTDLashg92+7C6hYXtOofjgwoBpO4P5Dprfpm6KnL193.xqnSJs6m3NvWv6IXho.dZhrMhv9WfGSNFq1VCjg4p6EPkh3gRrjjXXtxthfYCCEWwS2+ozD54LhZgiwPPQoj2WvBTHVQ0nWHkE3k62IFfV7JhBMSiBeM5HZ.cN8hnwCzLrJjnb7vrwhfmSY3YWK7rqCdlkf2JovaCzP+XZjrfiBaeAZ.GNnFggifxvJcuFMbaf5IfcvkaMAeAY+XXwbI5ris8irdps8lOe81q2FNHRjVWhisdAWbti02YkK5XhrmXRjfCK57PM2GVmLcWnLcqUlsWnLamISweTNixIVilx8kTA2Rv06SohXAqiet7OBr.aJYy0a+l0a2Ri4sRHxSUD6jx54yY3Gh4iIAclSp6Ms2tU16a0fagvWonLv0CyXmCo2cphYkhJ4NGKjjS3c1r8aZ2p8aaaccViFUKuLkwHw0xVU1EuHA6vmN4bRbdXKeiP9W0DbzMmfWt9yOMlTZiB9.NUdRDgeSUkFYARn.nYFpfuj5z+6mk9OjQCHwFTHK+dH8gmgFvyao7tybMVZg6dWDd6ZD9mGzGKwpJ3LeA7uHRrjpBcl8IWBsFSqmag5SRtPJhzNaVVCzs6C5tudtA+CO2YEsR+d2IX+Xwb32BZhCqsbLlfKjw32Ud3RattkL2eIVFy08tXtsKYN2vRlyU3NgFDvHdhDpJwsHHbhaYCpNDd+lmPKbQvTFVVsut5xrLFJUVtAppIIGL0rxW1cma1WaV+RB2MPdToeX83sQM3ExB+Xi2rqNWGs2nQDeYAXWAs+udaumzY4umrQIrr17gYnShXjCxgBBMz6fELCy27t9DFtRb6WnAxvBB+laMS4LfeITW6IX33qG0aV0Uatbt5GXJkEmZnbIqOaRk+JjNj+4Df0oDe9.3Gf7v+eHg3khoRJe7QXYLEZRiNd5jgvn99D.pbNgoFnvrg5p+z01p0J.MjvCzK9W3WFSG0ZyLlN4LKGR1H+t0gg3HBzBJqAv0ZF0aZ7koutXWJN4PxHY45WEsWRGGVg3OAD7.ET9oKGJtpBo+7ucgHNobT8DnIQBF5GAAgxzq1BBhSjfoU6u7iSkhwW6wV5GUMfGMUVlZ+X5kUD8H5qq7DMsmuOkAi8m7QoQ0mji4OE1PORyY9oyzn5.ullB32b86QKloJazu6gb59rsrMfgSnm46qt36wf5L8ymFO3rHbLHKD6AwUS5jdeTIpou5Ma4YoFZUcGcPsvQwZfJssUFQMmypns2A9lItR88iUFODxMU5UsGp9Zo7JxXBNPvYyxpOq2Y5d2bFn1pD0UPNNum2fPpTRsyjhRsmfPN4NRJ0b+v4Z9g8x4GymGOyFU7haPlmbKj4o2BY14VHyytEx7sKTF0+GCUekIo2I.D71S+dESy83XnTW2cz3+.rFIuRC
                        

                        I just did it with macros but I would have preferred to do it by script.

                        the values ​​of the knobs themselves must be> if knob 3 = 0 (Knob1 & Knob 2 = 0)

                        if Knob3 = 100% (Knob2 = 100% & Knob1 = 7)

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

                          @yall Oh well that's easy, just imagine knob3 is a percentage.

                          Knob1.setValue(Knob1.get("max") * value);

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

                          1 Reply Last reply Reply Quote 0
                          • Y
                            yall
                            last edited by

                            @d-healey said in Knob 2 value:

                            Knob1.setValue(Knob1.get("max") * value);

                            this is exactly the formula I was looking for !! thank you ^
                            I even think I can simplify ultimately, 1 single button that will control my modules rather than making 3 buttons

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

                            14

                            Online

                            1.7k

                            Users

                            11.8k

                            Topics

                            103.2k

                            Posts