add FB BOOST toggle: 115% feedback max, cap default to 91%

This commit is contained in:
Armin 2026-09-09 16:50:33 +02:00
commit abdb64dcde
4 changed files with 24 additions and 8 deletions

View file

@ -34,6 +34,7 @@ public:
bool doubleTap = false;
bool center = false;
bool autoPan = false;
bool fbBoost = false;
float panDepth = 1.0f;
double bpm = 120.0;
};
@ -206,7 +207,7 @@ public:
wetR *= gR;
}
const float fb = sFeedback * 0.91f;
const float fb = sFeedback * (p.fbBoost ? 1.15f : 0.91f);
const float g = fb * (1.0f + 0.1f * std::pow (fb, 4.0f));
dl.write (inL[i] + softClip (lpL.processLP (hpL.processHP (fbL * g))));
dr.write (inR[i] + softClip (lpR.processLP (hpR.processHP (fbR * g))));