Skip to content

Commit ae37416

Browse files
authored
Merge pull request #16006 from fixxiefixx/fix-ramping-in-echo-effect
Fix ramping of the send and feedback parameters in echo effect
2 parents 3527b38 + 7f9449f commit ae37416

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/effects/backends/builtin/echoeffect.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ void EchoEffect::processChannel(
167167
int read_position = pGroupState->write_position;
168168
decrementRing(&read_position, delay_samples, pGroupState->delay_buf.size());
169169

170-
RampingValue<CSAMPLE_GAIN> send(send_current,
171-
pGroupState->prev_send,
170+
RampingValue<CSAMPLE_GAIN> send(pGroupState->prev_send,
171+
send_current,
172172
engineParameters.framesPerBuffer());
173173
// Feedback the delay buffer and then add the new input.
174174

175-
RampingValue<CSAMPLE_GAIN> feedback(feedback_current,
176-
pGroupState->prev_feedback,
175+
RampingValue<CSAMPLE_GAIN> feedback(pGroupState->prev_feedback,
176+
feedback_current,
177177
engineParameters.framesPerBuffer());
178178

179179
int rampIndex = 0;

0 commit comments

Comments
 (0)