diff --git a/Makefile b/Makefile index b60f574..8b04110 100644 --- a/Makefile +++ b/Makefile @@ -91,10 +91,7 @@ plugins: libs ifneq ($(CROSS_COMPILING),true) gen: plugins dpf/utils/lv2_ttl_generator - @./dpf/utils/generate-ttl.sh -ifeq ($(MACOS),true) - @./dpf/utils/generate-vst-bundles.sh -endif + $(CURDIR)/dpf/utils/generate-ttl.sh dpf/utils/lv2_ttl_generator: $(MAKE) -C dpf/utils/lv2-ttl-generator diff --git a/NeuralCapture.png b/NeuralCapture.png new file mode 100644 index 0000000..9e22b34 Binary files /dev/null and b/NeuralCapture.png differ diff --git a/README.md b/README.md index a933dd0..e1b4bfe 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ A Neural Capture plug to make the process of cloning external soft/hardware a bit more comfortable +![NeuralCapture](https://github.com/brummer10/neuralcapture/blob/main/NeuralCapture.png?raw=true) + + ## Formats Neural Capture come in the following plug-in formats: diff --git a/plugins/NeuralCapture/CParamSmooth.hpp b/plugins/NeuralCapture/CParamSmooth.hpp deleted file mode 100644 index b2b96ce..0000000 --- a/plugins/NeuralCapture/CParamSmooth.hpp +++ /dev/null @@ -1,41 +0,0 @@ -/** - * One-pole LPF for smooth parameter changes - * - * https://www.musicdsp.org/en/latest/Filters/257-1-pole-lpf-for-smooth-parameter-changes.html - */ - -#ifndef C_PARAM_SMOOTH_H -#define C_PARAM_SMOOTH_H - -#include - -#define TWO_PI 6.283185307179586476925286766559f - -class CParamSmooth { -public: - CParamSmooth(float smoothingTimeMs, float samplingRate) - : t(smoothingTimeMs) - { - setSampleRate(samplingRate); - } - - ~CParamSmooth() { } - - void setSampleRate(float samplingRate) { - if (samplingRate != fs) { - fs = samplingRate; - a = exp(-TWO_PI / (t * 0.001f * samplingRate)); - b = 1.0f - a; - z = 0.0f; - } - } - - inline float process(float in) { - return z = (in * b) + (z * a); - } -private: - float a, b, t, z; - double fs = 0.0; -}; - -#endif // #ifndef C_PARAM_SMOOTH_H diff --git a/plugins/NeuralCapture/PluginNeuralCapture.hpp b/plugins/NeuralCapture/PluginNeuralCapture.hpp index 1bad58c..333ff5a 100644 --- a/plugins/NeuralCapture/PluginNeuralCapture.hpp +++ b/plugins/NeuralCapture/PluginNeuralCapture.hpp @@ -10,7 +10,6 @@ #define PLUGIN_NEURALCAPTURE_H #include "DistrhoPlugin.hpp" -#include "CParamSmooth.hpp" #include "profiler.h" START_NAMESPACE_DISTRHO