Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Oct 25, 2024
1 parent 94060e1 commit a1aa4f1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a1aa4f1

Please sign in to comment.