aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/Pafnuty/Pafnuty.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LV2/src/Pafnuty/Pafnuty.h')
-rw-r--r--plugins/LV2/src/Pafnuty/Pafnuty.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/LV2/src/Pafnuty/Pafnuty.h b/plugins/LV2/src/Pafnuty/Pafnuty.h
new file mode 100644
index 0000000..6117cea
--- /dev/null
+++ b/plugins/LV2/src/Pafnuty/Pafnuty.h
@@ -0,0 +1,47 @@
+#ifndef __Pafnuty_H
+#define __Pafnuty_H
+
+#include <lv2plugin.h>
+
+class Pafnuty : public LV2Plugin<13> {
+public:
+ Pafnuty(double rate);
+
+ void activate();
+ void run(uint32_t num_samples);
+
+ static constexpr const char * URI = "https://www.airwindows.com/pafnuty";
+
+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
+
+ float A;
+ float B;
+ float C;
+ float D;
+ float E;
+ float F;
+ float G;
+ float H;
+ float I;
+ float J;
+ float K;
+ float L;
+ float M;
+
+};
+
+#endif