Invert dB Knob
-
Hi! I want to invert the Conv Reverb Damping knob. Damping goes from -100dB to 0dB. And I want the knob to go from 0dB to -100dB (to create a "Fade out" reverb knob).
I read all the other posts about inverting knobs, but they don't work for this particular knob. I tried to use the NormalizedPorcentage as in this post https://forum.hise.audio/topic/2147/invert-eq-slider/4, but since the maximum Damping value is 0dB, it doesn't work.
HiseSnippet 1017.3ocuV0saaTDEdVGuEhApnnBb6pbkCJM0FJEjpPwM9GvhjTq5zBbUY7tGaOJyNypYmMDCp2yiUeGPhq4Qf2.3L6Na1wMF2DK.eQTN++cNyY9lcjRFBooREwa6SWj.Du20e7Bgdd24TlfLrGw619GSS0fJnP0gKRnooPDwyaqu1nva65j7e+4AGR4TQHTohPdtjEBGwhY5Jsi57sLNe.MBNkE638C5LLTJ5J4xLDOa42hjPCOiNCNgZbqlOw6V8iXZoZrlpgTzmCkQKFOW9ShB+eNKkMgCFg1jwXhJTS5NmwiFU1qoDhW8QUc9VEc9c8OlEwtTe0D38yMDTEg6Lvq15fT6a.j7bfT8BHcG+wgJVhtxhAOui+PAdfLkhiZWnT3KoFTyuqD8Pn2OldFLPgBWFQyG1p0dA3e18QMZfi6Tcv4T7vUJNWxyzLo3ov4fZR6fuJHeSX+Yft+zoPnt4NNdEXcaGSdt+8shA8nwILwLmLelXhSXV6XxKgHl9tx3Do.EZtyJ8NuFLAmIffoYhv75KEqzWSZURdyvxbtGhBdFraieow1WsK2OEzOVqUrIYZn4JraS6dAsB9jflsCtmMcHjdIhpaTWXJlEecob9Db6t45aicejS+dhTCOQzLuSZ7xFAutooSWoMap3fZklM2AUqKvlhr3IfxcNZbDWRWdy+VWuM+vhIliiRwPAS+jDvJOPxiLazl++p2SH1Qt4FiEgnq576K21deYLmEAJBCSxG6ux4KIuYrbO+3zo+9AjmMrGUSKSKVArpIfRyLMmWO3bjIq3Z4198fzyzxjbesm5Du25FChKtj76Uy5r3RgNPGMbgNuPVOikQXp+H+SjpXJm8yPzHPEhkEoGIwrnHNLRlxLIuhP8ONfbUNEjMSFkwo5ko3Lb4VClb3xqX3NDXtW3x0+57d0+mO8a4b5+FNaulv8N9iX5v4qFu0VAdwS0+qwq8Uj2yufrrBr08G78q8Ii5WuKNUP4M97wGThEmctbr7g9qfBeIv0SsX4m0+gW8cfdYUDxQHxEgKMfGFmjwSgi.wL8b2MEKtFJRxzt5eVJbHx.NSIyDQmNWAzH27MRAQ.mtTM9FVWmb7q+VmxqGN9LXvo1aoVU2sy.Fu5aHhMchumwRL8hx+kKkI34gR6pnuHpTzaq+kdlm7TIN7EyNlhO5XJ+IYwiwO3IDvMFg.3olRVyvyUH2pDBiAQTtveg+rFaaj8rFaWZ7+kZDSCUxWDVv.aV.e6bMXeKxG0aie2HJGztjp02u09sLbUrWDFZtVbu1Dxpi4S2fX9rMHlGrAw74aPLObCh4K1fX9x0Fi4qXeblVFWPYhJF0O+IOOu9BJt8lS.P9aPp4c0h
-
@bendurso either you can use a "percentage" knob for this
ConvolutionReverb1.setAttribute(ConvolutionReverb1.Damping, -100 * value);
however it will make huge difference in the effect because 8% on the percentage knob will result in - 8db,
You can set the gui knob to "Decibel" mode and set min to 0 and max to 100 and have this in your knob callback
ConvolutionReverb1.setAttribute(ConvolutionReverb1.Damping, -value);
However it seems changing the suffix is not possible, so maybe you want to display the value in a label component instead, and apply the suffix % your self (If that's what you want)
HiseSnippet 1271.3ocuWE0aaaCDlxNrn1cMacna6UACT.2rzD6tttATrE03DuYrjTu5zr0m5nknsHBEofDUR7FJPeb+O1ej9SX.6g859Ir+AYGkjsoZjCRMVqevv73cG+tOd7ty8ijtz3XYDxp1gSBoHqO.OXhP42wmvDnd6frVEuOIVQiryDs8jPRbL0CYYU86zBrpsBJ8y+t01DNQ3RmKBgNRxbo6wBXp4R667CLNuKwidHKvP6G3zyUJ5H4xD.OUwsPgD2iIioGPzpUAirt1tdLkLZfhnnwHqU1V5MYfu7TQl9GwhYC4T8h1nAfixD2Ux8zHVKE0wmw85OMtiQfW5OmEplwB2FuOyiMS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