if (value >= -1) | issue with IF function
-
I have a knob set from -1 to 1. This knob is scripted to control multiple effects via
effect.setattribute
.Im using
if (value >= -1)
to set the effects to the desired value if knob is greater than or equal to -1.It works as it should but ONLY once the knob hits 50%. Before that, no effects take place. Once the knob hits 50% (or 0) then the effects begin to add.
Most effects values are normalized percentage but also have some EQ & Gain modules, which act in the same manner.
I'd like the effects to begin as soon as the knob is turned rather than no effects taking place before the knob is halfway turned.
Am I misunderstanding the IF function?
-
@trillbilly Post a simple snippet
-
@d-healey Of course, Im slow with this.
So in short with this snippet, I need the EQ & Reverb to start immediately with the knob. The EQ value I would like to be from 0 to 8, but goes to -8.
The SimpleGain needs to go from -100 to 0 during the full knob rotation. Right now it goes from -100 to 0 when the knob hits 50%.
I guess its functioning worse than I initially thought once building a simpler model of it.
HiseSnippet 1476.3oc2X0rbaTDDdWKuorTfTDpDfSTakhCJTAWZsCgTE+XEqeBpHNVXYRfSgw6NRZvyNylcm0FEJ+TvobBNyS.vk3GAJdBnJt.23Afpfd1ezNihPVwjXvQGb4omt68q6d5eloaH2EGEwCMLKu8n.rg4KX0aDSLrwPDgYzoog44r1.EIvg1ojVeT.JJB6YXZV5lRBlkWzH42er15HJh4hKHYXbGNwEeKhOQTPsa8OhPosQd3sI9Jbe05cb4rFbJOFvSIqZFAH2cQCv2FIYaAKCyyzxiH3g8DHANxvzZct2ndC46yR4+NjHxNTrbgiQOPQojayodRDK++M2CGtGAuuJMiFCITut49hHCPycK7LkR8LWvZChGYL8BOzKkrgcgDp9HyEzgbIMH6nB4ZJPdJPxTARKlBoya0yMjDHJ1QhmyZ0gAAr9HHTnBkTdMV3UJY0fCbvDK6i1E2NDVLVhpWqVsqXC+4xuakJP3HRXuGJzdCvX2ksi86amK5.rnA2OfyfEUuT19WRWptnPHzIBI2u0G6.xlbzRJYq98wtfXELXCbHktP3dD+.JdKLDv1YpBmxfcFGSSX4AzYIZx9IXtBgQILrc+XlqfvY1bVlIIs2PNspatwdE3CPiwWtxWUoLouc0j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djqaVScLEqdZUbkSqhqdZUbsSqhqeZU7lmVEu0qWQcG86LRI8i2afmrocynWiyxx3wEH+MfX9wOH
-
@d-healey Ahhh, ok I see. Let me implement this into the project. Thanks again.