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/Console5DarkCh/Console5DarkCh.h | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 plugins/LV2/src/Console5DarkCh/Console5DarkCh.h (limited to 'plugins/LV2/src/Console5DarkCh/Console5DarkCh.h') diff --git a/plugins/LV2/src/Console5DarkCh/Console5DarkCh.h b/plugins/LV2/src/Console5DarkCh/Console5DarkCh.h new file mode 100644 index 0000000..45504e8 --- /dev/null +++ b/plugins/LV2/src/Console5DarkCh/Console5DarkCh.h @@ -0,0 +1,43 @@ +#ifndef __Console5DarkCh_H +#define __Console5DarkCh_H + +#include + +class Console5DarkCh : public LV2Plugin<1> { +public: + Console5DarkCh(double rate); + + void activate(); + void run(uint32_t num_samples); + + static constexpr const char * URI = "https://www.airwindows.com/console5darkch"; + +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 lastSampleChannelL; + double lastSampleChannelR; + double lastFXChannelL; + double lastFXChannelR; + double iirCorrectL; + double iirCorrectR; + double gainchase; + double settingchase; + double chasespeed; + long double fpNShapeL; + long double fpNShapeR; + //default stuff + + float A; +}; + +#endif -- cgit v1.2.3