diff --git a/deps/NeuralAmpModelerCore b/deps/NeuralAmpModelerCore index 48e91a6..c5dad8f 160000 --- a/deps/NeuralAmpModelerCore +++ b/deps/NeuralAmpModelerCore @@ -1 +1 @@ -Subproject commit 48e91a64e6deaf4e6a586688d901bcdc0edaf540 +Subproject commit c5dad8f5bd91a956b7b726d74abf4e3d085f8298 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c5088fb..e956264 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,6 +3,7 @@ set(SOURCES nam_lv2.cpp nam_plugin.h) set(NAM_SOURCES ../deps/NeuralAmpModelerCore/NAM/activations.h + ../deps/NeuralAmpModelerCore/NAM/activations.cpp ../deps/NeuralAmpModelerCore/NAM/version.h ../deps/NeuralAmpModelerCore/NAM/lstm.h ../deps/NeuralAmpModelerCore/NAM/lstm.cpp diff --git a/src/nam_plugin.cpp b/src/nam_plugin.cpp index 0b3567d..d4094e9 100644 --- a/src/nam_plugin.cpp +++ b/src/nam_plugin.cpp @@ -3,10 +3,13 @@ #include #include "nam_plugin.h" +#include "activations.h" namespace NAM { Plugin::Plugin() { + // Turn on fast tanh approximation + activations::Activation::enable_fast_tanh(); } bool Plugin::initialize(double rate, const LV2_Feature* const* features) noexcept