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jZvpSsPcnIAoAzyzUgtMZf9JT8aTuI58vAp6CYIIIP2ce5qmHL0QyqHlmIJ5KMJrb9TImRx8fy3anatEp05dkYWtDNkLcLx8rR9cfjMRuPloKLuRDmVv2Xy4sgmZ9ltMuZ0RO2bfPQdL3.UeY0JUOsJ50YMd7R4k4cLsMVB6Lqe9B5xmFMhHyeVK+hvfhEm93b9SeJObzOsQqzEE7dbp5wwD94MxzJq6TOoJCUvUUl4TeZ1bpALZ.QZQgwQejio3xx.3h48+48sdZucgDStZ.MBVIlHUTsCXuK4HX6gzweUb1kjbHjcfEAl+f.n52pQOYtAaKZOq3vu1NhFDvH8EITc.tLtRlNdL8Ds2eCqHQ.Xfuv4.gLByn+FInOQpqygESzAh4P4RoPoV9bZcguAIW1IsInDTr9kRP4UgsOV2TUP3EsmXZpJn7z1Vmck.XYDQvTFVs3FJ52+yXn8qxqEnG8yA+cV4019Oask2UHdEm9Tk+jkiwUVBFgBj+OvX1xd0bRWTo.fq4z8G9.rY2mma+RywM1+ZNKYkoE.ztxYKt88O9prI+YjZe8qc8W8H.sb+EBj8hhmBSIeDgGVphCpBxvUOd7TUY5OMgrC7fcnYVwvIRBNnr95CO2SX3ErwCncJoie+OZuKNJlxCKemtcGl0XmQ5ps6RYEq5Go8DGaMGXMq7uxDh3A5kRJSXOdP9Q6UemySdu4xjzMFBgwjR8KANGLMZ.Lq0m.UIbnaV+.q8J5mBSO2JGBCH7.yg+A9jwzSe1NioWNyOH1HB6KEuvO8QZcA3kMT.+laB0Ub1WeF485uNCwc3W57Be+EU0YDbiKpf29hJ3ctnBd2Kpf26hJ3WeQE7ad6Bp+gnaOUIhReB0xZ+96YllZauGGCU4lGJr9WvDsEW0
-
@ulrik Yes that's exactly what I was looking for, thankyou.
I can mess with the local gain amount to get the slider rotation to match closely with the reverb knob rotation so it's more of a 1:1 relationship and it's perfect.
Thanks again, much appreciated
-
@ulrik
I am now trying to do something similar with a saturation slider but am having similar issues.
I want to only have the saturation go up to 60% but have the slider popup go from 0 to 100%.
Again I have got the custom popup to work and display the correct % range up to 100% but if I link the slider to the saturation the custom popup no longer works.It is basically the same issue I had before so I tried using the code you used for the reverb above but it doesn't make the saturation knob in the effect move. I suspect it is something to do with the
local gain = 20 * Math.log10(value);
line but I am drawing a blank.
I replaced it with the following
local gain2 = 50 * Math.log10(value); Saturator1.setAttribute(Saturator1.Saturation, gain2);
but it isn't working. I thought it would as I created a new local ref and also replaced the Convolution reverb references with the saturation ones.
Is there something obvious that I am missing?
Thanks in advance
-
@rzrsharpeprod snippet?
-
@ulrik said in Custom popup values help:
@rzrsharpeprod snippet?
Give me a few minutes as this is in the main project so is huge. Let me make a basic one and I'll post the snippet
Thankyou
-
@ulrik said in Custom popup values help:
@rzrsharpeprod snippet?
HiseSnippet 1808.3ocyXs0aSbDEd2jr.YotpTQaecjkPZMMDrMWZTCn3bsDwMKb.ZEpElr6X6QY2YVs6XBtnH0G6upJ9OfTetR8OP+CTQOyE6cbhsIDnztOj34LyYlu4b4aNyzLiGRxy4YNtyuS+Thi6m30pOSzc8tXJyY6MjB1gjKPo7zdoNq0OEmmShbbcm86jivc94bTe+0JqgiwrPRgHGmGwogj6PSnhBoMabaZb7V3HxNzDqQe0FaGxYqyi48.zLqWUmTb3d3Nj6gkCaFOG2SsYDUvyZIvBRti6bqwi52pKeeld7OhlS2MlHaTyoELQZwawiijHVJ0Y8tz3nlC104NvrzrvFLq1Fbdu6RinCkWXK9LUGnBMrsGtyLJ7lcD3UyFdUsf2XfjqEjlSCoy40JLilJJ5Qhmy5sMSPxZiAytMTzi0Yl+12acNLBlXwD7djsxfFC0H35Uqt.5ZUqVY4R99W9xyKGBBixHsIYDvShDbjnKAAtkmyi6InbFz4yIY65ChfXh0K53AJ40P2DoBeVrCQrY61jPQPYqQgLCqbkk8KAKI51L9t0Ly1ywYp10gIY.pgoYcdRJmAMBJq5srDtk7orXJifZ2iEplYNS0qTwLdbP3.sV.l23djJk7eYIeD7AaTFGkuGYeDXE.+kQZLODGi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BJupSi8kogEBdZitpzvBIOrgy6vtdIqk5Wdh0R8r7FvohxlWQ88mqL0s2QsPZ0d8J1nYtIswm2yvXHgimaaWGm9xez0Uds5ibkQ3xp7ndwxCOsuAq7XOSGRPXesQ4UCY.35aes9Ces14NdWqc52593B2y40jJB6Nd7NyXvqL+6eY7ZdjfRd55zJ.6bda88S8EAl63w+T.kw95.yXgkOe.VrJwQgkuvaLW6dDvsQV+QeAme3UlhhLhZ7a2n7qtCfbV3HF3sSR6AkQbGBqiURFDoXv01rzdBa4OLmrFbrVG0Yp6zMifirmulvYhjX7HqwsnqaMG+5qarANIkx5XOls1ZGCWlQz4arEMt34hRj6DOYtgiJIU+yXNOskrjMaAaxhFzzc1i8q3TapuhiitlpNP4DYRxOu60KoETRRHAhXXPdr7.I2YjGcnaWc.DZQXQpFuA9LcVS110zYsAcZGVdZsw3rdCKY177cEkPO5aDMrbZKe0afPfUS.+jXTGKYzPEvowyEGV1GLS23d.rwRO7UdE6Bz+8jZeL73eLViDbXF+og5JQj9iynj.6alJ4Zdu6JaipMnDDOupKVUd7F8oggRhvKUywY75T+DnyUNA5b0SfNW6Dny0OA57Mm.cVZp5HeV5U6I3I53ePPyMUkB55tICCQxpTAm+ALTHIGD
Here you go. I am sure I am doing something very simple & stupid but I can't see what
-
@rzrsharpeprod If you want to display the range 0 - 100 % in the UI and 100% in the UI will set the saturator to 60% you need only to set:
value * 0.6
in the knob callback and send it to the saturator module
Saturator1.setAttribute(Saturator1.Saturation, value * 0.6);
since you want the ui to display the range 0 - 100%
no need for extra code in the custom display panelHiseSnippet 1835.3ocuXs0aaTDEdcRVnYAi.D2dbjkpz5RZv1sDhHTUmqPDsEq5zBHDzNY2w1ixtyrZ2YSpoJR7H+r5+A9CvKvS7.uvyvYtrdmMw1sMsk7PqmyYNWlyku4LauTd.IKim5Ta4CFmPbp8lt8GyDi1dDlxb1eGIgCHYBTBOIOwYqwI3rLRnSsZK9kxcTa4kbT+822bKbDlEPJI43beNMfbKZLUTR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KpfW6hJ30unB9oWTAW6hJ3mcQEb8mtfxO97l4BdrtOww4181UMGXsZ6xvPEupkw4+..F6UiI
-
@ulrik Well now I feel silly...but it worked (again) thankyou
Just out of interest so I know for future, why didn't the snippet I posted work and change the saturation amount?
-
@rzrsharpeprod the percentage knob spits out a value between 0-1, and using
local gain2 = 50 * Math.log10(value);
on that value will result in a value between -100 and -11, and the saturation need a value between 0-1 so you could have set the percentage knobs value directly to the saturator, but you wanted 100% (1.0) in the ui to set a value of 60% (0.6) in the saturator so...
A good way to check that the value you're about to set to a module, other component etc.. will fit to that range. Use
Console.print(value) in your callbacks
-
@ulrik said in Custom popup values help:
@rzrsharpeprod the percentage knob spits out a value between 0-1, and using
local gain2 = 50 * Math.log10(value);
on that value will result in a value between -100 and -11, and the saturation need a value between 0-1 so you could have set the percentage knobs value directly to the saturator, but you wanted 100% (1.0) in the ui to set a value of 60% (0.6) in the saturator so...
A good way to check that the value you're about to set to a module, other component etc.. will fit to that range. Use
Console.print(value) in your callbacks
Awesome, thankyou. I appreciate the assistance and the pointers :)