Hard Clipper
-
@Matt_SF ok when I try to compile I get this error:
❌ /Users/zzz/Desktop/HISE_PROJECTS/EQ-1/DspNetworks/Binaries/Source/CLIPMAIN.h:25:53: call to member function 'pow' is ambiguous return Math.sign(input) * Math.pow(Math.atan(Math.pow(Math.abs(input), 1.0 / value)), value);
Any ideas?!
-
@DanH ha that must be my bad, I did it too quickly :
Replace
1.0
by1.0f
in the equation -
@Matt_SF Thanks! Ok, so close but so far it seems... I go through the process of compiling the nodes, but when I go to export Hise wants the expr node wrapped into a compilable network. But I already did that, and compiled that network, and the project is using the compiled node as you can see in the image, so I totally do not understand what I'm doing wrong!
-
@DanH I replied to this error earlier. Stop doing that ! :face_with_tears_of_joy:
It's either you leave the
math.expr
node as it is and compile the whole network :OR
You wrap and compile the node only and disable the network compilation :
Then you can compile the network into DLL.
:) -
@Matt_SF ok I got there eventually
Thanks for the help!
-
If you want a straight up Hard clipper, try something like:
f_hard(x, threshold, ceiling) = (abs(x) >= threshold) ? (min(threshold * sign(x), ceiling)) : x
Can I just stick this into the math.expr node like so?
EDIT: No!
Could someone show me how to add this equation in please?! :folded_hands:
-
@DanH f_hard(x, threshold, ceiling) is the name of the function and it's variables. The result of the function is equal to the output, so consider them to be the same thing.
abs, min and sign are math functions, so you have to use the HISE equivalent. aka Math.abs, Math.min and Math.sign.
x = input
threshold and ceiling are parameters that go from 0.01 - 1.00 -
@Dan-Korneff I have a lot to learn!! Thank you :)
-
@DanH did you get it going yet?
-
@Dan-Korneff Thanks for asking, I haven't had time to have a go yet - next week!
-