From 7881b2698cee2b0187adbe8a2c0a66a90cc371c1 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 3 Apr 2021 15:07:02 +0200 Subject: Add more plugins, Console5Buss to curve --- plugins/LV2/src/Crystal/Crystal.h | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 plugins/LV2/src/Crystal/Crystal.h (limited to 'plugins/LV2/src/Crystal/Crystal.h') diff --git a/plugins/LV2/src/Crystal/Crystal.h b/plugins/LV2/src/Crystal/Crystal.h new file mode 100644 index 0000000..e851171 --- /dev/null +++ b/plugins/LV2/src/Crystal/Crystal.h @@ -0,0 +1,43 @@ +#ifndef __Crystal_H +#define __Crystal_H + +#include + +class Crystal : public LV2Plugin<4> { +public: + Crystal(double rate); + + void activate(); + void run(uint32_t num_samples); + + static constexpr const char * URI = "https://www.airwindows.com/crystal"; + +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. + */ + + double bL[35]; + double lastSampleL; + double bR[35]; + double lastSampleR; + + long double fpNShapeL; + long double fpNShapeR; + //default stuff + + float A; + float B; + float C; + float D; + +}; + +#endif -- cgit v1.2.3