Skip to content

Commit

Permalink
don't smooth initial delay offset
Browse files Browse the repository at this point in the history
avoid detune at tap init
  • Loading branch information
magnetophon committed Dec 21, 2024
1 parent 7b7497a commit 3c3aa83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,11 @@ impl Plugin for Del2 {
let pan = ((f32::from(delay_tap.note) - panning_center) * panning_amount)
.clamp(-1.0, 1.0);
let (offset_l, offset_r) = Self::pan_to_haas_samples(pan, sample_rate);
if meter_index + 1 > old_nr_taps {
// nih_log!("reset offset for {meter_index}");
delay_tap.smoothed_offset_l.reset(offset_l);
delay_tap.smoothed_offset_r.reset(offset_r);
}
delay_tap
.smoothed_offset_l
.set_target(sample_rate, offset_l);
Expand Down
1 change: 0 additions & 1 deletion todo.org
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


* today
** don't smooth initial delay offset -> detune at tap init
** crossfade highshelf to bypass when gain is low
*** return input when gain is 0
** HQ mode: stereo simd, LQ mode: 4 chan simd
Expand Down

0 comments on commit 3c3aa83

Please sign in to comment.