From 1d763ef31e018829cb3c3e89d58dd7ae67249d96 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Tue, 12 Sep 2023 16:49:33 +0200 Subject: [PATCH] finalized bw_wah + examples --- examples/fx_wah/src/bw_example_fx_wah.c | 2 +- examples/fx_wah/vst3/Makefile | 3 + examples/fxpp_wah/vst3/Makefile | 3 + include/bw_wah.h | 431 +++++++++++++++++++++--- 4 files changed, 393 insertions(+), 46 deletions(-) diff --git a/examples/fx_wah/src/bw_example_fx_wah.c b/examples/fx_wah/src/bw_example_fx_wah.c index d637ec6..b425c92 100644 --- a/examples/fx_wah/src/bw_example_fx_wah.c +++ b/examples/fx_wah/src/bw_example_fx_wah.c @@ -30,7 +30,7 @@ void bw_example_fx_wah_set_sample_rate(bw_example_fx_wah *instance, float sample void bw_example_fx_wah_reset(bw_example_fx_wah *instance) { bw_wah_reset_coeffs(&instance->wah_coeffs); - bw_wah_reset_state(&instance->wah_coeffs, &instance->wah_state); + bw_wah_reset_state(&instance->wah_coeffs, &instance->wah_state, 0.f); } void bw_example_fx_wah_process(bw_example_fx_wah *instance, const float** x, float** y, int n_samples) { diff --git a/examples/fx_wah/vst3/Makefile b/examples/fx_wah/vst3/Makefile index 2cba2a9..788eefd 100644 --- a/examples/fx_wah/vst3/Makefile +++ b/examples/fx_wah/vst3/Makefile @@ -4,3 +4,6 @@ NAME := bw_example_fx_wah SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fx_wah.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_wah/vst3/Makefile b/examples/fxpp_wah/vst3/Makefile index 8a2907c..38489f7 100644 --- a/examples/fxpp_wah/vst3/Makefile +++ b/examples/fxpp_wah/vst3/Makefile @@ -4,3 +4,6 @@ NAME := bw_example_fxpp_wah SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_wah.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_wah.h b/include/bw_wah.h index 49b4862..4d848f7 100644 --- a/include/bw_wah.h +++ b/include/bw_wah.h @@ -31,6 +31,14 @@ *