aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/ADClip7/ADClip7.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LV2/src/ADClip7/ADClip7.cpp')
-rw-r--r--plugins/LV2/src/ADClip7/ADClip7.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/plugins/LV2/src/ADClip7/ADClip7.cpp b/plugins/LV2/src/ADClip7/ADClip7.cpp
index e568a30..5d5ad0d 100644
--- a/plugins/LV2/src/ADClip7/ADClip7.cpp
+++ b/plugins/LV2/src/ADClip7/ADClip7.cpp
@@ -5,11 +5,33 @@
ADClip7::ADClip7(double rate)
: LV2Plugin(rate)
- , refclipL(0.99)
- , refclipR(0.99)
{
}
+void ADClip7::activate()
+{
+ lastSampleL = 0.0;
+ lastSampleR = 0.0;
+
+ for(int count = 0; count < 22199; count++) {
+ bL[count] = 0;
+ bR[count] = 0;
+ }
+
+ gcount = 0;
+ lowsL = 0;
+ lowsR = 0;
+ refclipL = 0.99;
+ refclipR = 0.99;
+ iirLowsAL = 0.0;
+ iirLowsAR = 0.0;
+ iirLowsBL = 0.0;
+ iirLowsBR = 0.0;
+
+ fpNShapeL = 0.0;
+ fpNShapeR = 0.0;
+}
+
void ADClip7::run(uint32_t num_samples)
{
A = *params[0];