Skip to content

Commit

Permalink
use tick_pivotal instead of tick_newton for filter
Browse files Browse the repository at this point in the history
easier on the cpu
  • Loading branch information
magnetophon committed Nov 17, 2024
1 parent 18b2785 commit cfd3650
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,12 @@ impl Plugin for Del2 {
.copied()
.unwrap_or(0.0),
]);
let processed = self.ladders[tap_index].tick_newton(frame);
// most cpu intensive:
// let processed = self.ladders[tap_index].tick_newton(frame);
// lightest non-linear filter
let processed = self.ladders[tap_index].tick_pivotal(frame);
// even lighter, but linear
// let processed = self.ladders[tap_index].tick_linear(frame);
let frame_out = *processed.as_array();
self.delayed_audio_l[tap_index][i] = frame_out[0];
self.delayed_audio_r[tap_index][i] = frame_out[1];
Expand Down

0 comments on commit cfd3650

Please sign in to comment.