From 98df0d307d5e39ece8ad28da2f3caefe06d24e6b Mon Sep 17 00:00:00 2001 From: Gordon JC Pearce Date: Sat, 24 Aug 2024 20:53:16 +0100 Subject: [PATCH] silence in the buffers to avoid 'switch on pop', which can be a bit loud although super realistic --- plugin/barrverb.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/barrverb.cpp b/plugin/barrverb.cpp index 3aee254..ff430da 100644 --- a/plugin/barrverb.cpp +++ b/plugin/barrverb.cpp @@ -25,9 +25,10 @@ BarrVerb::BarrVerb() : Plugin(kParameterCount, 64, 0) { // one parameter, 64 pr lowpass = new float[getBufferSize()]; ram = new int16_t[16384]; - loadProgram(20); + bzero(lowpass, sizeof(float) * getBufferSize()); + bzero(ram, sizeof(int16_t) * 16384); - /* + /* // calculate SVF params // hardcoded values for now float fc = 5019;