-
Transition between condition statements
I’m creating this equalizer, and I’m trying to get the different bars to change color depending on the value of the sound they are connected to. The code below is what I have so far.
Now, it is working. The only thing it is lacking is that it is not transitioning between the different states. So what I’m looking for is a gradient transition between the different if/else conditions. I could of course manually just set more else if statements, but that would take too much time.
soundValue = Math.floor(thisComp.layer("Medium Gray-Magenta-Red Solid 17").effect("Sound Keys")("Output 1").value);if (soundValue >= 570)
[0,0,1,1]
else if (soundValue >= 200)
[0,1,0,1]
else
[1,0,0,1]