aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/BrightAmbience/BrightAmbience.cpp
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-03-28 14:32:58 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-03-28 14:34:54 +0200
commitcc36a9b13b2c378cdddd221d4995a50af7914a35 (patch)
treef844862c058a07d57f447e31d265da35b2165470 /plugins/LV2/src/BrightAmbience/BrightAmbience.cpp
parentc0042de0d9e234a45c32aa297c775d6bdc5c730d (diff)
downloadairwindows-lv2-port-cc36a9b13b2c378cdddd221d4995a50af7914a35.tar.gz
airwindows-lv2-port-cc36a9b13b2c378cdddd221d4995a50af7914a35.tar.bz2
airwindows-lv2-port-cc36a9b13b2c378cdddd221d4995a50af7914a35.zip
LV2: Add another batch of plugins.
Plugins added in this batch: - BitGlitter - BitShiftGain - Bite - BlockParty - BrassRider - BrightAmbience - BuildATPDF - BussColors4 - ButterComp - ButterComp2
Diffstat (limited to 'plugins/LV2/src/BrightAmbience/BrightAmbience.cpp')
-rw-r--r--plugins/LV2/src/BrightAmbience/BrightAmbience.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/plugins/LV2/src/BrightAmbience/BrightAmbience.cpp b/plugins/LV2/src/BrightAmbience/BrightAmbience.cpp
new file mode 100644
index 0000000..2df98c3
--- /dev/null
+++ b/plugins/LV2/src/BrightAmbience/BrightAmbience.cpp
@@ -0,0 +1,38 @@
+#include "BrightAmbience.h"
+#include <iostream>
+#include <lv2wrapper.h>
+
+BrightAmbience::BrightAmbience(double rate)
+ : LV2Plugin(rate)
+{
+}
+
+void BrightAmbience::activate()
+{
+ for(int count = 0; count < 25360; count++) {pL[count] = 0;pR[count] = 0;}
+ gcount = 0;
+ A = 0.0;
+ B = 0.0;
+ C = 0.0;
+ fpd = 17;
+ //this is reset: values being initialized only once. Startup values, whatever they are.
+
+}
+
+void BrightAmbience::run(uint32_t num_samples)
+{
+ A = *params[0];
+ B = *params[1];
+ C = *params[2];
+
+ processReplacing(const_cast<float **>(in), out, num_samples);
+}
+
+//
+// Include the processing code from the VST version.
+//
+#include <cmath>
+#include "../../../LinuxVST/src/BrightAmbience/BrightAmbienceProc.cpp"
+
+// Create the LV2Wrapper and register the plugin
+LV2Wrapper<BrightAmbience> plugin;