Knob 2 value



  • how to make in a simplified way, a knob which controls 2 modules but of different value?
    I have absolutely no recollection of how to proceed please



  • @yall

    You do a conversion inside the knob callback. The formula will depend on the type of values you are using. If it's percentage then it's easy, if it's converting from hz to decibels or something then it's not as easy, got a snippet?



  • @d-healey yes ๐Ÿ˜‰

    HiseSnippet 1187.3oc0X80aaaCDmx1bs1ctnYXOtGD5SN.Io9O8OCHXatwNNynwIFwcYYOUPKQaSDIRCIpzXTTf839XruS6Kx9FrcTR1hxQ0N0CMXwvOXd2863u6H4cjtumvh56K7PFEe6roTjwWiGLiKmzZBgwQcaiLdLtGwWR8LiDcvroDeepMxvH+QJAFEKfB+72+zADGB2hlHBgNWvrnGybYxDo8a9FliSGhM8sLWMqedytVBdKgiH.3SdbUzTh0kjwzSHJyxgQFe0g1LovafjHo9HiBGHrmMXh387H6Om4yF5PUCpgF.NJRbGgishwpeiZMg4X2edb6i.uzOIKjOJK7s3dLa1B4IYimDpvLAgd9vH2pnWsMjdFZzqPD81BOvxiMUlnQwsGg6xgEpQDXIPmVQ1hx8fB3VBvBtbOWxkzNdvfEHp7xpU2w7EUqt89kKUtDrP3KMuh3Y9FtXXMyevbNzwTYKg6TAGFT4ogZeZVXpuRL0yDSiUhoQLlz3Fz+H.U3lVElCGMhZA..wglqYXmKxzvNWn4WF2gwoliB3VRlfaJ3gQnhTdBmJVyYzNfKcBnaWtzGJWpHLY64SkuVJ8XCCjzJJApSG6Xtajc6aZZ9rmYNgZ5F.7YrvTJL28Upu1CAMkK8wPNrxrrZNhYRKhiyP3zQkzDbcAR80EHctXo.ADzic8bq1e87r9p3Y8avyOMWarFtFF2po5bkvJKHXrBqID9XpckEhp+orsdJaWW70XUwWCs3SKbNQHomxqrcoOTpXoOVxbYUiFkotXm4P8xTsp5o2p.VgG3Nj5MOsM2PnLR55TO51UmxJJmnYnf2kyjmNkFONoRlRWTTOWaUzhfUWTRLpKMLzxvrDQ2rPIJdMCJYlO1b3WxvBlONtf4.GlM0Cw.N9.b39DTXtQukE5VCt9+EvMx.7uzsMQRT07iiEH9lR8jL0pjQa5UPyznN.Ewso9WJESCC13MnHC7ZC2qWLg+d+lyRl8eroKIQG56Zhzbag0lHRf9mhzt8ywOMz7SyIZ9oonI5lsAglwB6.GhLcGZUg2XEvwgTsBUs639L4L8qs7Yz1tZlssqk0twaIc2B2mIsljMeykAegcGeo4a7kfJii5QlP1B3NWbGbimbZb4gKtVJycpC8n4TAigdrq31nHTapCIUd6WY1xIIB9slYbe0t7qfya8ENDuky54SGp4ucg5Ztu4p2ZnBIy6Mak+FbXJ+9DgC2Rb+gvOA2m7+gMDmIBjL93dD3ZhPEa7IAtCfGsYQApx4TGXhvF4TcCiFWUMVQnATtc3f+A9DqrlZrQrxZyUpmR1ZdOuASHSoPIn3B.KULpUf2UQuS7.Fw+X5Ho94WkryXimjR3OCB5CNP+QnGKdeJQ+we0Dx3T8r5oPQBeBTOBRB5xWtDzYT6fz0WdcfTLdomMG973t7oARcos8XWkBZO10ohmvHuCyAd.m+WjBU2IKy2EygKwxS7Nqnalop.+vPIPbyC+mEJh6oFat3xfXb08phbgW5+NKKUaucgiAYio9FfowFf44a.lWrAXd4Ff4Ua.luekXT+IKpiJtQk4.A8OL7pwFFGxIvt2vC7n+Ez7a.T.
    


  • @d-healey button 3 controls 1 and 2. 1 must go to -7 db and button 2 must go to 1. but I can't find the solution for button 1 to go to -7.



  • 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.



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



  • What range do you want for each knob?



  • @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.



  • @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.



  • @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.



  • @yall Why is the range 0 - 7?



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



  • @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?



  • 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)



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

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



  • @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


Log in to reply
 

6
Online

1.2k
Users

3.9k
Topics

34.1k
Posts