From 2a2ca10356a5018d4b9d7d989d3230d613dd0007 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Sat, 4 Jan 2025 19:04:16 +0100 Subject: [PATCH] fix meters --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index bc1205f..04c0aa7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -958,7 +958,8 @@ impl Plugin for Del2 { write_index - (delay_time - 1), ); - if delay_tap.is_audible { + if delay_tap.is_alive { + // nih_log!("fill tap_index: {tap_index}"); 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); @@ -1072,7 +1073,7 @@ impl Plugin for Del2 { self.process_simd_block(block_start, block_end, block_len, output); // meters: - for tap_index in 0..tap_counter { + for tap_index in 0..NUM_TAPS { let mut amplitude = 0.0; for sample_idx in block_start..block_end {