aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/AverMatrix/AverMatrix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LV2/src/AverMatrix/AverMatrix.cpp')
-rw-r--r--plugins/LV2/src/AverMatrix/AverMatrix.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/LV2/src/AverMatrix/AverMatrix.cpp b/plugins/LV2/src/AverMatrix/AverMatrix.cpp
index 2c6493c..4c3dba8 100644
--- a/plugins/LV2/src/AverMatrix/AverMatrix.cpp
+++ b/plugins/LV2/src/AverMatrix/AverMatrix.cpp
@@ -7,6 +7,19 @@ AverMatrix::AverMatrix(double rate)
{
}
+void AverMatrix::activate()
+{
+ for(int x = 0; x < 11; x++) {
+ f[x] = 0.0;
+ for (int y = 0; y < 11; y++) {
+ bL[x][y] = 0.0;
+ bR[x][y] = 0.0;
+ }
+ }
+
+ fpd = 17;
+}
+
void AverMatrix::run(uint32_t num_samples)
{
A = *params[0];