From 5201d3363a54d12a2257f8f2025cfe3b83d3caaf Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Mon, 29 May 2023 11:50:16 +0200 Subject: [PATCH] fix reset in bw_{chorus,phaser} + better enum param name in fx_chorus --- examples/fx_chorus/src/bw_example_fx_chorus.c | 2 +- examples/fx_chorus/src/bw_example_fx_chorus.h | 2 +- include/bw_chorus.h | 11 +++++++++-- include/bw_phaser.h | 8 +++++++- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/examples/fx_chorus/src/bw_example_fx_chorus.c b/examples/fx_chorus/src/bw_example_fx_chorus.c index 9149e93..978762b 100644 --- a/examples/fx_chorus/src/bw_example_fx_chorus.c +++ b/examples/fx_chorus/src/bw_example_fx_chorus.c @@ -55,7 +55,7 @@ void bw_example_fx_chorus_set_parameter(bw_example_fx_chorus *instance, int inde case p_rate: bw_chorus_set_rate(&instance->chorus_coeffs, 0.01f + 1.99f * value * value * value); break; - case p_amount: + case p_depth: bw_chorus_set_amount(&instance->chorus_coeffs, 0.004f * value); break; } diff --git a/examples/fx_chorus/src/bw_example_fx_chorus.h b/examples/fx_chorus/src/bw_example_fx_chorus.h index 80bc66b..583db4b 100644 --- a/examples/fx_chorus/src/bw_example_fx_chorus.h +++ b/examples/fx_chorus/src/bw_example_fx_chorus.h @@ -29,7 +29,7 @@ extern "C" { enum { p_rate, - p_amount, + p_depth, p_n }; diff --git a/include/bw_chorus.h b/include/bw_chorus.h index ac39b42..9c25540 100644 --- a/include/bw_chorus.h +++ b/include/bw_chorus.h @@ -1,7 +1,7 @@ /* * Brickworks * - * Copyright (C) 2022, 2023 Orastron Srl unipersonale + * Copyright (C) 2023 Orastron Srl unipersonale * * Brickworks is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.4.0 }}} + * version {{{ 0.5.0 }}} * requires {{{ * bw_buf bw_config bw_comb bw_common bw_delay bw_gain bw_math bw_one_pole * bw_osc_sin bw_phase_gen @@ -36,7 +36,13 @@ * }}} * changelog {{{ *