I'm trying to make a VST Plugin and I saw a dash before a variable like this:
*output = fmax(*input,-mTreshhold);
I've searched in google but I couldn't find anything about it. Can someone explain what that dash does?
I'm trying to make a VST Plugin and I saw a dash before a variable like this:
*output = fmax(*input,-mTreshhold);
I've searched in google but I couldn't find anything about it. Can someone explain what that dash does?
Feels kind of obvious since I had math in school: it's just the negative sign. fmax is called with 0-mThreshold as second parameter.
The dash symbol before a variable or numeric constant negates the value.
The equivalent expression is:
*output = fmax(*input, 0 - mThreshhold);