From 3e1400922f03dba76dc2ae80a24f26a857e01d8b Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Tue, 19 Sep 2023 08:49:56 +0200 Subject: [PATCH] finalized bw_trem + examples --- TODO | 1 + examples/fx_trem/src/bw_example_fx_trem.c | 2 +- examples/fx_trem/vst3/Makefile | 3 + examples/fxpp_trem/vst3/Makefile | 3 + include/bw_trem.h | 464 +++++++++++++++++++--- 5 files changed, 422 insertions(+), 51 deletions(-) diff --git a/TODO b/TODO index 85c718e..3c8457c 100644 --- a/TODO +++ b/TODO @@ -77,6 +77,7 @@ code: * src inside distortions? w/ control from outside? * make all outs nullable? * make all reset state outs nullable (svf, phase_gen, ...)? +* ring mod fx module? build system: * make makefiles handle paths with spaces etc diff --git a/examples/fx_trem/src/bw_example_fx_trem.c b/examples/fx_trem/src/bw_example_fx_trem.c index 57a4e89..024806d 100644 --- a/examples/fx_trem/src/bw_example_fx_trem.c +++ b/examples/fx_trem/src/bw_example_fx_trem.c @@ -30,7 +30,7 @@ void bw_example_fx_trem_set_sample_rate(bw_example_fx_trem *instance, float samp void bw_example_fx_trem_reset(bw_example_fx_trem *instance) { bw_trem_reset_coeffs(&instance->trem_coeffs); - bw_trem_reset_state(&instance->trem_coeffs, &instance->trem_state); + bw_trem_reset_state(&instance->trem_coeffs, &instance->trem_state, 0.f); } void bw_example_fx_trem_process(bw_example_fx_trem *instance, const float** x, float** y, int n_samples) { diff --git a/examples/fx_trem/vst3/Makefile b/examples/fx_trem/vst3/Makefile index 4618a88..71a7732 100644 --- a/examples/fx_trem/vst3/Makefile +++ b/examples/fx_trem/vst3/Makefile @@ -4,3 +4,6 @@ NAME := bw_example_fx_trem SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fx_trem.c include ${ROOT_DIR}/../../common/vst3/vst3.mk + +CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG +#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP diff --git a/examples/fxpp_trem/vst3/Makefile b/examples/fxpp_trem/vst3/Makefile index dce6d58..d9368ae 100644 --- a/examples/fxpp_trem/vst3/Makefile +++ b/examples/fxpp_trem/vst3/Makefile @@ -4,3 +4,6 @@ NAME := bw_example_fxpp_trem SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_trem.cpp include ${ROOT_DIR}/../../common/vst3/vst3.mk + +CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG +#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP diff --git a/include/bw_trem.h b/include/bw_trem.h index 556252c..667be68 100644 --- a/include/bw_trem.h +++ b/include/bw_trem.h @@ -31,6 +31,14 @@ *