Hard Clipper
-
@Matt_SF just tried in a new project and get the same result...
I get this error message in the dll compilation though, but says process completed and there's a dylib file created and the node looks correct in Hise...
DLL_EXPORT scriptnode::Error getError() ^ āø Compiling RNBO.cpp āø Linking CLIPPER.dylib āø Build Succeeded Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process completed]
-
@Matt_SF so you managed to export the project as a plugin?
-
@DanH yes, it's working just fine. I don't know why it won't work on your computer.
These are the steps I followed (as usual actually) :- new project, create a scriptFX module
- create a snex_shaper node
- create a new file called "snex_shaper"
- create a new parameter called "soft/hard"
- copy/paste @Dan-Korneff 's code into it
- set allow compilation to "enabled"
- Done
I'm sure you know how to do it though...
If the snex node doesn't work for you, and you still want to use it, try to use a
Math.expr
node and put the algorithm @Dan-Korneff used in the SNEX code in it. -
@Matt_SF I get the same issue here when I try to export a plugin after compiling the network .dll of a SNEX Shaper node.
-
@Dan-Korneff you must not wrap the snex_shaper node, simply leave it as it is and compile the dll :
-
@Matt_SF I thought all custom SNEX nodes needed to be wrapped? āļø
-
@Dan-Korneff actually, if you want to keep the bare scriptFX module in your project (and in your compiled plugin), you have to :
- disable 'allow compilation' of the network
- wrap the SNEX / expr node
- compile the dll
- compile your plugin.
If you want to use a hardcodedFX in your project (and in your compiled plugin), you just need to :
- enable 'allow compilation' of the network
- compile the dll
- compile your plugin.
(> don't wrap the SNEX / expr node for the 2nd solution)
Edited
-
@Matt_SF I've tried both ways and still get the same error!
-
@DanH did you retry in a new blank project ?
-
@Matt_SF I did, I'll try with most recent commit. Maybe I'll also try with exp node before that actually....
-
@Dan-Korneff tried shoving this into a SNEX Node but get any error to do with the parameter control, I'm most likely doing it wrong though! @Matt_SF I couldn't see anywhere to add an algo into the math-exp node...
Any help hugely appreciated!
HiseSnippet 1451.3ocuX0rbaaCDFTVPIx1oSRSldVGclI0kT+ZM8PhsrUplV6nwx0StkAlDxBiHAXIghsRmduuBsuA8RdF5qReC5aP6BBJQPaI+iljPOiLA1EK9vte6tPpejvkFGK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+B8PUthapD9BTnvqrfpq7is9.cHvMV+qh6FueRaYDZgkcK39EWEbcx5pULeoj1xY8omEmg3O+9DojfT6xx1SsLBAQNXta90e+ep7C+0e9rrogOKtwC7I.+7oiOGS3D6Y9IMehs4Sa6mBYa+bBbx2H3.8vYq7Wtf3Z3VWqHiKvsBaiFNv8ZGTHWdq3xyaO.PqwhkX2ydUOE2rZiZ0p01nc6FG1vrtQmkTZMekVQeyEqQe.1bi5ZBc+LpCFzoygM5zFZEF00bniPHm.2VHsqYs5UaG5q5Mqa1rcyZqBZeJCR6hOm5Sk4X7I8xxxRVI+I7tgYKf2E22+R0nVD64UwEPGIDScHg2eYy90F+ebaKGhkm3MVQWfTs4dPnFf9xC+I4aCcAAYcSzayFpbfeh7arrRN6e4yo1FLm5avbZrAyo4FLmVavbZuAy4v0NG0+chWDHENQ2sETL3jntdZmvIv83COHD8e.SUOb9
Edit : error fix
-
@Matt_SF ah, haha, indeed :)
Thank you, I'll see if I can compile this now
-
@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 !
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?!
-
@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