mirror of
https://codeberg.org/armin/mindball.git
synced 2026-09-21 04:17:19 +02:00
add FB BOOST toggle: 115% feedback max, cap default to 91%
This commit is contained in:
parent
2f4d6f8726
commit
abdb64dcde
4 changed files with 24 additions and 8 deletions
|
|
@ -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))));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue