quick question,
my current function is
waveR.functionToUse = [](auto x) { return std::tanh(x * Math::pi); };
i want to do the following:
waveL.functionToUse = [&cfg](auto x) { return std::tanh(x * Math::pi * cfg); };
waveR.functionToUse = [&cfg](auto x) { return std::tanh(x * Math::pi * cfg); };
cfg is reference to a float that is connected to my APVTS, i want to tighten the waveshaper by increasing this value but i cant implement it into my function.
I get the following error message:
Severity | Code | Description | Project | File | Line | Suppression State |
---|---|---|---|---|---|---|
Error (active) | E0413 | no suitable conversion function from lambda auto (auto x)->auto to float (*)(float) exists | GummiClipDistortionV0_SharedCode | E:\TsunamiBETA\GummiClipDistortionV0\Source\GCD_V0.cpp | 42 |