From da30569d6133a0e85ed61bc2ed6e3f6ed39193f2 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Tue, 15 Aug 2023 06:37:51 +0200 Subject: [PATCH] changed bw_drive input gain to be more like other distortions --- include/bw_drive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bw_drive.h b/include/bw_drive.h index 9db940a..acffc49 100644 --- a/include/bw_drive.h +++ b/include/bw_drive.h @@ -266,7 +266,7 @@ static inline void bw_drive_update_coeffs_audio(bw_drive_coeffs *BW_RESTRICT coe static inline float bw_drive_process1(const bw_drive_coeffs *BW_RESTRICT coeffs, bw_drive_state *BW_RESTRICT state, float x) { float v_lp, v_hp, v_bp; - bw_svf_process1(&coeffs->hp2_coeffs, &state->hp2_state, x, &v_lp, &v_bp, &v_hp); + bw_svf_process1(&coeffs->hp2_coeffs, &state->hp2_state, 0.316f * x, &v_lp, &v_bp, &v_hp); float y = bw_hs1_process1(&coeffs->hs1_coeffs, &state->hs1_state, v_hp); y = bw_peak_process1(&coeffs->peak_coeffs, &state->peak_state, y); y = v_hp + bw_satur_process1_comp(&coeffs->satur_coeffs, &state->satur_state, y - v_hp);