commit 437f3ed2bee7a0efb648ec182fe0c91187583c39 Author: Alex Janka Date: Tue May 24 14:46:48 2022 +1000 inital diff --git a/FaustEffect.dsp b/FaustEffect.dsp new file mode 100644 index 0000000..070b3fc --- /dev/null +++ b/FaustEffect.dsp @@ -0,0 +1,20 @@ +import("stdfaust.lib"); +import("aanl.lib"); +import("maths.lib"); +import("basics.lib"); + +process = driver : wrapper : aa.hardclip2 : trimmer; + +driver(x) = x * drive * squeeze; +trimmer(x) = x * (1 / squeeze); +wrapper(x) = (clipper(x) * fadeamt) + (x * (1 - fadeamt)); +clipper(x) = aa.arctan(clipamt * x)/aa.arctan(clipamt); + +drive = db2linear(nentry("drive", 0, 0, 1, 0.01) * 20) : si.smoo; +squeeze = db2linear(nentry("squeeze", 0, 0, 1, 0.01) * 20) : si.smoo; +// trim = db2linear((nentry("trim", 0, 0, 1, 0.01) * 20) - 20); + +slider_raw = nentry("clipping", 0, 0, 1, 0.01); +slider = (.85*slider_raw)+0.15; +fadeamt = min(20*slider_raw, 1); +clipamt = max(ma.EPSILON, (slider^2)*20); \ No newline at end of file diff --git a/faustMinimal.h b/faustMinimal.h new file mode 100644 index 0000000..b0a84c5 --- /dev/null +++ b/faustMinimal.h @@ -0,0 +1,15 @@ +#include +#include + +#include "faust/gui/MapUI.h" +#include "faust/gui/meta.h" +#include "faust/dsp/dsp.h" +#include "faust/dsp/one-sample-dsp.h" + +// BEGIN-FAUSTDSP + +<> + +<> + +// END-FAUSTDSP