Skip to content

Commit

Permalink
no need to clamp the read index: it wraps around
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Nov 3, 2024
1 parent 13f43c2 commit 82e1aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ impl Plugin for Del2 {
let drive = self.filter_params[tap_index].clone().drive;
self.mute_in_delay_buffer.read_into(
&mut self.mute_in_delayed[tap_index],
write_index - (delay_time - 1).max(0),
write_index - (delay_time - 1),
);
// Depending on whether the delay tap has polyphonic modulation applied to it,
// either the global parameter values are used, or the delay tap's smoother is used
Expand Down

0 comments on commit 82e1aea

Please sign in to comment.