From 1bd34fa795d0eac15d0dc9d4c756f19fc6624872 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 31 Jul 2021 21:34:28 +0200 Subject: LV2: Port another batch of plugins, EQ - SurgeTide Some plugins won't compile for various reasons, these have been left out for now. One plugin failed autoporting, so that one's left out too. I have not tested these plugins yet, so no guarantees that they work, or that they work right. Please report any problems or if there's missing control info to the mailing list. --- plugins/LV2/src/StudioTan/StudioTan.cpp | 61 +++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 plugins/LV2/src/StudioTan/StudioTan.cpp (limited to 'plugins/LV2/src/StudioTan/StudioTan.cpp') diff --git a/plugins/LV2/src/StudioTan/StudioTan.cpp b/plugins/LV2/src/StudioTan/StudioTan.cpp new file mode 100644 index 0000000..a04e750 --- /dev/null +++ b/plugins/LV2/src/StudioTan/StudioTan.cpp @@ -0,0 +1,61 @@ +#include "StudioTan.h" +#include +#include + +StudioTan::StudioTan(double rate) + : LV2Plugin(rate) +{ +} + +void StudioTan::activate() +{ + A = 0.0; + + bynL[0] = 1000.0; + bynL[1] = 301.0; + bynL[2] = 176.0; + bynL[3] = 125.0; + bynL[4] = 97.0; + bynL[5] = 79.0; + bynL[6] = 67.0; + bynL[7] = 58.0; + bynL[8] = 51.0; + bynL[9] = 46.0; + bynL[10] = 1000.0; + noiseShapingL = 0.0; + lastSampleL = 0.0; + lastSample2L = 0.0; + + bynR[0] = 1000.0; + bynR[1] = 301.0; + bynR[2] = 176.0; + bynR[3] = 125.0; + bynR[4] = 97.0; + bynR[5] = 79.0; + bynR[6] = 67.0; + bynR[7] = 58.0; + bynR[8] = 51.0; + bynR[9] = 46.0; + bynR[10] = 1000.0; + noiseShapingR = 0.0; + lastSampleR = 0.0; + lastSample2R = 0.0; + //this is reset: values being initialized only once. Startup values, whatever they are. + +} + +void StudioTan::run(uint32_t num_samples) +{ + A = *params[0]; + + processReplacing(const_cast(in), out, num_samples); +} + +// +// Include the processing code from the VST version. +// +#include +#include "../../../LinuxVST/src/StudioTan/StudioTanProc.cpp" + +// Create the LV2Wrapper and register the plugin +LV2Wrapper plugin; -- cgit v1.2.3