aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/BassDrive/BassDrive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LV2/src/BassDrive/BassDrive.cpp')
-rw-r--r--plugins/LV2/src/BassDrive/BassDrive.cpp44
1 files changed, 43 insertions, 1 deletions
diff --git a/plugins/LV2/src/BassDrive/BassDrive.cpp b/plugins/LV2/src/BassDrive/BassDrive.cpp
index 9d296eb..325962b 100644
--- a/plugins/LV2/src/BassDrive/BassDrive.cpp
+++ b/plugins/LV2/src/BassDrive/BassDrive.cpp
@@ -4,10 +4,52 @@
BassDrive::BassDrive(double rate)
: LV2Plugin(rate)
- , fpd(17)
{
}
+void BassDrive::activate()
+{
+ for (int fcount = 0; fcount < 7; fcount++)
+ {
+ presenceInAL[fcount] = 0.0;
+ presenceOutAL[fcount] = 0.0;
+ highInAL[fcount] = 0.0;
+ highOutAL[fcount] = 0.0;
+ midInAL[fcount] = 0.0;
+ midOutAL[fcount] = 0.0;
+ lowInAL[fcount] = 0.0;
+ lowOutAL[fcount] = 0.0;
+ presenceInBL[fcount] = 0.0;
+ presenceOutBL[fcount] = 0.0;
+ highInBL[fcount] = 0.0;
+ highOutBL[fcount] = 0.0;
+ midInBL[fcount] = 0.0;
+ midOutBL[fcount] = 0.0;
+ lowInBL[fcount] = 0.0;
+ lowOutBL[fcount] = 0.0;
+
+ presenceInAR[fcount] = 0.0;
+ presenceOutAR[fcount] = 0.0;
+ highInAR[fcount] = 0.0;
+ highOutAR[fcount] = 0.0;
+ midInAR[fcount] = 0.0;
+ midOutAR[fcount] = 0.0;
+ lowInAR[fcount] = 0.0;
+ lowOutAR[fcount] = 0.0;
+ presenceInBR[fcount] = 0.0;
+ presenceOutBR[fcount] = 0.0;
+ highInBR[fcount] = 0.0;
+ highOutBR[fcount] = 0.0;
+ midInBR[fcount] = 0.0;
+ midOutBR[fcount] = 0.0;
+ lowInBR[fcount] = 0.0;
+ lowOutBR[fcount] = 0.0;
+ }
+
+ flip = false;
+ fpd = 17;
+}
+
void BassDrive::run(uint32_t num_samples)
{
A = *params[0];