Skip to content

Commit

Permalink
Use scaled drive factor in ladder
Browse files Browse the repository at this point in the history
Proper PBG compensation depends on using scaled drive
  • Loading branch information
ndonald2 committed Apr 19, 2024
1 parent 0dd093c commit 20107ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Filters/ladder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void LadderFilter::Init(float sample_rate)

float LadderFilter::Process(float in)
{
float input = in * drive_;
float input = in * drive_scaled_;
float total = 0.0f;
float interp = 0.0f;
for(size_t os = 0; os < kInterpolation; os++)
Expand Down

0 comments on commit 20107ec

Please sign in to comment.