Skip to content

Commit

Permalink
Merge pull request SquarePine#12 from Density-One/limiterTweaks
Browse files Browse the repository at this point in the history
Limiter tweaks
  • Loading branch information
spearse authored Oct 10, 2023
2 parents 4ac59d1 + 8e0437a commit d9a1408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,10 @@ float LimiterProcessor::getOutputGain()
return 20.f * log10 (outputGain);
}

float LimiterProcessor::getGainReduction()
float LimiterProcessor::getGainReduction (bool linear)
{
if (linear)
return linA;
// This method can be find the amount of gain reduction at a given time
// if the interface has a meter or display.
return 20.f * log10 (linA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ class LimiterProcessor
void setEnhanceOn (bool isOn) { enhanceIsOn = isOn; }
void setTruePeakOn (bool isOn) { truePeakIsOn = isOn; }
void setAutoCompOn (bool isOn) { autoCompIsOn = isOn; }
void setOverSamplingLevel (int level) { OSFactor = level; }

float getGainReduction();
float getGainReduction (bool linear);
private:
bool bypassed = false;

Expand Down

0 comments on commit d9a1408

Please sign in to comment.