mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Remove compressor/distortion mix (force 100% wet)
This commit is contained in:
parent
6cd7d4f3ba
commit
2a1feaaea9
2 changed files with 6 additions and 7 deletions
|
|
@ -10,13 +10,13 @@ public:
|
|||
}
|
||||
|
||||
void setParameters(float thresholdDb, float ratio, float attackMs, float releaseMs,
|
||||
float makeupDb, float mix) {
|
||||
float makeupDb) {
|
||||
threshold = std::pow(10.0f, thresholdDb / 20.0f);
|
||||
compRatio = ratio;
|
||||
attackCoeff = std::exp(-1.0f / (attackMs * 0.001f * static_cast<float>(sampleRate)));
|
||||
releaseCoeff = std::exp(-1.0f / (releaseMs * 0.001f * static_cast<float>(sampleRate)));
|
||||
makeupGain = std::pow(10.0f, makeupDb / 20.0f);
|
||||
dryWet = mix;
|
||||
dryWet = 1.0f;
|
||||
}
|
||||
|
||||
float process(float input) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue