From a1aa4f12be5859221de390675dc986495e3f0dd3 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Sat, 26 Oct 2024 00:33:15 +0200 Subject: [PATCH] cleanup --- src/lib.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2371b11..a356679 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -755,17 +755,8 @@ impl Del2 { } fn mute_all_outs(&mut self, mute: bool) { - let time_value = if mute { - self.params.global.release_ms.value() - } else { - self.params.global.attack_ms.value() - }; - let target_value = if mute { 0.0 } else { 1.0 }; - for tap in 0..self.delay_data.current_tap { - self.releasings[tap] = mute; - self.amp_envelopes[tap].style = SmoothingStyle::Exponential(time_value); - self.amp_envelopes[tap].set_target(self.sample_rate, target_value); + self.mute_out(tap, mute); } } @@ -798,7 +789,6 @@ impl Del2 { self.counting_state = CountingState::TimeOut; self.timing_last_event = 0; self.samples_since_last_event = 0; - // println!("time out no_more_events"); }; } fn compare_exchange(atomic_bool: &AtomicBool) -> bool {