aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/CrunchyGrooveWear/CrunchyGrooveWear.h
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-04-03 15:07:02 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-04-03 15:30:28 +0200
commit7881b2698cee2b0187adbe8a2c0a66a90cc371c1 (patch)
tree97634f663c6f24ae7d03a9400be2320671a494f1 /plugins/LV2/src/CrunchyGrooveWear/CrunchyGrooveWear.h
parent44faf659b6dd2de36d086e1cb5dfa5a978d89d37 (diff)
downloadairwindows-lv2-port-7881b2698cee2b0187adbe8a2c0a66a90cc371c1.tar.gz
airwindows-lv2-port-7881b2698cee2b0187adbe8a2c0a66a90cc371c1.tar.bz2
airwindows-lv2-port-7881b2698cee2b0187adbe8a2c0a66a90cc371c1.zip
Add more plugins, Console5Buss to curve
Diffstat (limited to 'plugins/LV2/src/CrunchyGrooveWear/CrunchyGrooveWear.h')
-rw-r--r--plugins/LV2/src/CrunchyGrooveWear/CrunchyGrooveWear.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/plugins/LV2/src/CrunchyGrooveWear/CrunchyGrooveWear.h b/plugins/LV2/src/CrunchyGrooveWear/CrunchyGrooveWear.h
new file mode 100644
index 0000000..6515393
--- /dev/null
+++ b/plugins/LV2/src/CrunchyGrooveWear/CrunchyGrooveWear.h
@@ -0,0 +1,55 @@
+#ifndef __CrunchyGrooveWear_H
+#define __CrunchyGrooveWear_H
+
+#include <lv2plugin.h>
+
+class CrunchyGrooveWear : public LV2Plugin<2> {
+public:
+ CrunchyGrooveWear(double rate);
+
+ void activate();
+ void run(uint32_t num_samples);
+
+ static constexpr const char * URI = "https://www.airwindows.com/crunchygroovewear";
+
+private:
+ /*
+ * These are the original DSP functions from the VST plugin.
+ * They need to be called from the LV2 plugins `run` function.
+ */
+ void processReplacing(float **in, float **out, VstInt32 samples);
+ void processDoubleReplacing(double **in, double **out, VstInt32 samples);
+
+ /*
+ * Members needed by the processing functions.
+ */
+
+ long double fpNShapeL;
+ long double fpNShapeR;
+ //default stuff
+
+ double aMidL[21];
+ double aMidPrevL;
+ double bMidL[21];
+ double bMidPrevL;
+ double cMidL[21];
+ double cMidPrevL;
+ double dMidL[21];
+ double dMidPrevL;
+
+ double aMidR[21];
+ double aMidPrevR;
+ double bMidR[21];
+ double bMidPrevR;
+ double cMidR[21];
+ double cMidPrevR;
+ double dMidR[21];
+ double dMidPrevR;
+
+ double fMid[21];
+
+ float A;
+ float B;
+};
+
+#endif