Skip to content

Commit

Permalink
fix wrong index of smoothers
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Nov 1, 2024
1 parent 0fc6e0a commit 652ae22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,9 @@ impl Plugin for Del2 {
}
}

for sample_idx in block_start..block_end {
let post_filter_gain = dry_wet[sample_idx] * output_gain[sample_idx]
/ (drive * global_drive[sample_idx]);
for (value_idx, sample_idx) in (block_start..block_end).enumerate() {
let post_filter_gain = dry_wet[value_idx] * output_gain[value_idx]
/ (drive * global_drive[value_idx]);

output[0][sample_idx] +=
delay_tap.delayed_audio_l[sample_idx] * post_filter_gain;
Expand Down

0 comments on commit 652ae22

Please sign in to comment.