From 6fe716223f9026e11f9f1c047fdc9734fd0e3781 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 27 Mar 2021 18:23:02 +0100 Subject: LV2: Add more plugins This adds the following plugins: - Baxandall - Beam - Biquad - Biquad2 - BiquadOneHalf Had to manually fix the `Type` param in the Biquad* plugins, since the script isn't able to pick up enumeration values. Apart from that the script took care of everything. --- plugins/LV2/src/Biquad/Biquad.cpp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 plugins/LV2/src/Biquad/Biquad.cpp (limited to 'plugins/LV2/src/Biquad/Biquad.cpp') diff --git a/plugins/LV2/src/Biquad/Biquad.cpp b/plugins/LV2/src/Biquad/Biquad.cpp new file mode 100644 index 0000000..fa7bed7 --- /dev/null +++ b/plugins/LV2/src/Biquad/Biquad.cpp @@ -0,0 +1,39 @@ +#include "Biquad.h" +#include +#include + +Biquad::Biquad(double rate) + : LV2Plugin(rate) +{ +} + +void Biquad::activate() +{ + for (int x = 0; x < 11; x++) {biquad[x] = 0.0;} + A = 1.0; + B = 0.5; + C = 0.5; + D = 1.0; + fpd = 17; + //this is reset: values being initialized only once. Startup values, whatever they are. + +} + +void Biquad::run(uint32_t num_samples) +{ + A = *params[0]; + B = *params[1]; + C = *params[2]; + D = *params[3]; + + processReplacing(const_cast(in), out, num_samples); +} + +// +// Include the processing code from the VST version. +// +#include +#include "../../../LinuxVST/src/Biquad/BiquadProc.cpp" + +// Create the LV2Wrapper and register the plugin +LV2Wrapper plugin; -- cgit v1.2.3