Skip to content

Commit

Permalink
fix slight bug in delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemumu committed Mar 9, 2022
1 parent 07817e5 commit 8e6548e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Week 7/Source/DSP/Time Based/Delay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ void Delay::processSample(float& inSample)
float sample_x1 = mCircularBuffer.getSample(0, sample_x1_pos);
float output_sample = AudioHelpers::lin_interp(sample_x, sample_x1, inter_sample_amount);

mFeedbackSample = mHighPassFilter.processSample(output_sample);
mFeedbackSample = mLowpassFilter.processSample(output_sample);
output_sample = mHighPassFilter.processSample(output_sample);
output_sample = mLowpassFilter.processSample(output_sample);

mFeedbackSample = output_sample;

Expand Down

0 comments on commit 8e6548e

Please sign in to comment.