Skip to content

Commit

Permalink
increase PAN_SMOOTHING_TIME
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Dec 5, 2024
1 parent 70c52a5 commit ef4768f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/delay_tap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use synfx_dsp::fh_va::LadderFilter;

use crate::{SVFSimper, MAX_BLOCK_SIZE, NO_LEARNED_NOTE, PANNER_EQ_FREQ};

const PAN_SMOOTHING_TIME: f32 = 242.0;

#[derive(Debug, Clone)]
pub struct DelayTap {
pub delayed_audio_l: Box<[f32]>,
Expand Down Expand Up @@ -57,12 +59,12 @@ impl DelayTap {
amp_envelope: Smoother::new(SmoothingStyle::Linear(13.0)),
internal_id: 0,
delay_time: 0,
smoothed_offset_l: Smoother::new(SmoothingStyle::Linear(77.0)),
smoothed_offset_r: Smoother::new(SmoothingStyle::Linear(77.0)),
eq_gain_l: Smoother::new(SmoothingStyle::Linear(77.0)),
eq_gain_r: Smoother::new(SmoothingStyle::Linear(77.0)),
pan_gain_l: Smoother::new(SmoothingStyle::Linear(77.0)),
pan_gain_r: Smoother::new(SmoothingStyle::Linear(77.0)),
smoothed_offset_l: Smoother::new(SmoothingStyle::Linear(PAN_SMOOTHING_TIME)),
smoothed_offset_r: Smoother::new(SmoothingStyle::Linear(PAN_SMOOTHING_TIME)),
eq_gain_l: Smoother::new(SmoothingStyle::Linear(PAN_SMOOTHING_TIME)),
eq_gain_r: Smoother::new(SmoothingStyle::Linear(PAN_SMOOTHING_TIME)),
pan_gain_l: Smoother::new(SmoothingStyle::Linear(PAN_SMOOTHING_TIME)),
pan_gain_r: Smoother::new(SmoothingStyle::Linear(PAN_SMOOTHING_TIME)),
note: NO_LEARNED_NOTE,
velocity: 0.0,
releasing: false,
Expand Down

0 comments on commit ef4768f

Please sign in to comment.