How to set scriptnode knob range via scripting?



  • I have an osc controlled by two knobs, the first is value which is linked to gain, no problems there.

    The second is linked to frequency, this knob has a range of 0-1 and the frequency knob it's linked to on the osc has a range of 20hz-20khz.

    How can I change the maximum range of the osc frequency knob via scripting (or via another knob). Basically I want to have a master knob that covers the full range and a sub-knob that covers 0-1 as I currently have.

    621dfa0d-982a-4c94-aeca-ef94b8057ed7-image.png

    Here's the snippet:

    HiseSnippet 1331.3oc4X0zaiSDFdbRmrsktPQrmPKRV6otRKUIP4CIDZyl1zpH1z0poTAmplZOoYTrmw3YRaCHNwEtw48F+M3GARHwej8e.7NisichcR+XaWPfO448iYdd+drchDtToTDgrV4vwgTj0Z3di4pAaOfv3nN6frdabWhTQiriI0ZbHQJodHKqp6oIXsxRHyyqdZKhOg6RyHgPGIXtzmyBXpLpNM+Jlu+tDO5grfbRuUyNtB91BewH.OUw0QgD2gjSo6SzhUAirp01ioDQ8TDEUhrVpkvabuAhy4wxeDSxNwmpWz.0C1nXx6J78zHV+NZ6ALeOmT6VhPVXmLuP0XuvCvcYdrIzy7FqaXXmoQd+gUkEAuF4gW8RgWiRfGJG5VJFc.HDdi7IpoQlNbjvfIlNR0gqnbISMNe35eT39tXGlxcP43sRI3EBT203MI3eeb698otpLvtDd2u4Majd4Xn79387EmP7ybfBtBPEMxfqOHgs8D91SDnwBJU+iqZoZ3UtT0p5zdjpy2ijuzrjxwk9OQ436UHzHuUqHuF82rxAYbLjeHtmaDKToipGQhXDtZBNMv2NQ.asD1IhjYKMtbaIVeTk0svPphTYeFIx1SFZ+k1s4mBYna5FQAybGY39T04hnga7Hf8id7WzeD2U2QvNLhFRhnGJb7Ii2PRBB8oG.p7D632kNznV9B2gOd0eX0UV8GW0NmpFS1vciSFA0yQEERv2WnnufuwbY0ueo7zEYQBeeZzhXuAeTvIznm.Vt+H5DAgfvzQ4UuZQYAuCmodQHMQro7NojgYl4r7LpolZAJ86mmTlgUB0LRkTVnkgxUvaIQSSlWx6fV5jJLFBvnm46KNeaQPHKowOjAYn4H7GGNPvYtwUu6K7.mPscItfyZrCQMPO1vMsA2ltSJ1h238GE.0ebN0GbpXqJZr.aQZWJrExfyf.MN0WmP6ycHQvsKf62H0ycrpBFUHMRwnoUN5UPhcE84rFti7HMWWhO5HcTUqj4TzhmfXrVzGfkABgZ.063vzi.Mko7Pio.90MKQxqssbIHultGEMEy2G+bvCB0iG.0QHT1P3CIQmRUlMXVhvLIMB53ocCBoKLWvzsXhCTyol4RHn1bBj.alj2kwSNzrIMcIWLCMncghF1i88SIWugzyicY4kr8EPluTZxb.CGkKBBDlrBYcua+yV6JuGNdCJrMOajRD.kzF6FkCH0lAH+5Ke4u8zB.o4uzbFfXja9.4cv8LINL9oloyy.nusIJW93TwrBkTQzMyw90L4SyB5NewNDEQmIsCSFBsnZY5BKKPQmgx8nWn23+BdZCMM8f4YF0SnMcPt1B7syIHudyhA4Ws.e6z0KY6LZw4Wa0rvQ+y+4UKr17mB9cyQ+V3cine2HJ2cLpvVckywLVRQ+P8qoeXMCXf9DPifhY7nqefnrpsEGH1CL26ridwE5NCHxKIIX46lyNoQ5h6wTrEc9bhYaGVKeyqaeTWPUKK3NAbp4RQlp9rk.NRmkT5bxolob2A44NIIwYkuR7eMNr4O7cwv80s0zrNqVBwv.h4ddnutSZu9jqAlab.zsmdF7kkwe3wJ3cnxgJQ3syOJn5+O+QAGHFofo9cIpHldtILvtGLZ1kN6X6j00SGZ2ix8pmNTMgYC8ZqDlMlLw8MwYDPbiDGmbMXcJ+xFJfcyM+xuUvc0qsafNKNwEiquYcT.7M+G65pc2eH3eJWmO5FnyGeCzYqafNexMPmO8FnymcCz4yWnN5e2RxLHcoHPvoc7E0rxtzeUzeCjP9VCF
    


  • Not sure I got it right but would it work with a pma node ?

    pmaNode.PNG

    HiseSnippet 1428.3oc4X06aiTDEeV6LNePBDDWEJHs5JP4DGQ1P3KgPwWRbhr3bvJNWzQUzjcmDOJ6NyxNiShAcUT.cTeUPAkHpfBnAJQBgDB5nilST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