From b08d9ae4f096a839f02916e711207d130e91a93b Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Fri, 21 Jul 2023 08:56:27 +0200 Subject: [PATCH] removed bw_config + beginning of debug (bw_common, bw_buf) --- TODO | 3 + examples/common/daisy-seed/daisy-seed.mk | 3 +- examples/common/daisy-seed/platform.h | 0 examples/common/vst3/platform.h | 0 examples/common/web/platform.h | 6 + examples/common/web/web.mk | 1 + examples/fx_ap1/src/bw_example_fx_ap1.h | 2 + examples/fx_ap2/src/bw_example_fx_ap2.h | 2 + .../fx_balance/src/bw_example_fx_balance.h | 2 + examples/fx_chorus/src/bw_example_fx_chorus.h | 2 + examples/fx_clip/src/bw_example_fx_clip.h | 2 + examples/fx_comb/src/bw_example_fx_comb.h | 2 + examples/fx_comp/src/bw_example_fx_comp.h | 2 + examples/fx_delay/src/bw_example_fx_delay.h | 2 + examples/fx_dist/src/bw_example_fx_dist.h | 2 + examples/fx_drive/src/bw_example_fx_drive.h | 2 + .../fx_eq_3band/src/bw_example_fx_eq_3band.h | 2 + .../fx_flanger/src/bw_example_fx_flanger.h | 2 + examples/fx_fuzz/src/bw_example_fx_fuzz.h | 2 + examples/fx_hp1/src/bw_example_fx_hp1.h | 2 + examples/fx_hs1/src/bw_example_fx_hs1.h | 2 + examples/fx_lp1/src/bw_example_fx_lp1.h | 2 + examples/fx_ls1/src/bw_example_fx_ls1.h | 2 + examples/fx_mm1/src/bw_example_fx_mm1.h | 2 + examples/fx_mm2/src/bw_example_fx_mm2.h | 2 + .../src/bw_example_fx_noise_gate.h | 2 + examples/fx_notch/src/bw_example_fx_notch.h | 2 + .../fx_one_pole/src/bw_example_fx_one_pole.h | 2 + examples/fx_pan/src/bw_example_fx_pan.h | 2 + examples/fx_phaser/src/bw_example_fx_phaser.h | 2 + examples/fxpp_ap1/src/bw_example_fxpp_ap1.h | 2 + examples/fxpp_ap2/src/bw_example_fxpp_ap2.h | 2 + .../src/bw_example_fxpp_balance.h | 2 + .../src/bw_example_fxpp_bitcrush.h | 2 + .../fxpp_chorus/src/bw_example_fxpp_chorus.h | 2 + examples/fxpp_clip/src/bw_example_fxpp_clip.h | 2 + examples/fxpp_comb/src/bw_example_fxpp_comb.h | 2 + examples/fxpp_comp/src/bw_example_fxpp_comp.h | 2 + .../fxpp_delay/src/bw_example_fxpp_delay.h | 2 + examples/fxpp_dist/src/bw_example_fxpp_dist.h | 2 + .../fxpp_drive/src/bw_example_fxpp_drive.h | 2 + .../src/bw_example_fxpp_eq_3band.h | 2 + .../src/bw_example_fxpp_flanger.h | 2 + examples/fxpp_fuzz/src/bw_example_fxpp_fuzz.h | 2 + examples/fxpp_hp1/src/bw_example_fxpp_hp1.h | 2 + examples/fxpp_hs1/src/bw_example_fxpp_hs1.h | 2 + examples/fxpp_lp1/src/bw_example_fxpp_lp1.h | 2 + examples/fxpp_ls1/src/bw_example_fxpp_ls1.h | 2 + examples/fxpp_mm1/src/bw_example_fxpp_mm1.h | 2 + examples/fxpp_mm2/src/bw_example_fxpp_mm2.h | 2 + .../src/bw_example_fxpp_noise_gate.h | 2 + .../fxpp_notch/src/bw_example_fxpp_notch.h | 2 + .../src/bw_example_fxpp_one_pole.h | 2 + examples/fxpp_pan/src/bw_example_fxpp_pan.h | 2 + .../fxpp_phaser/src/bw_example_fxpp_phaser.h | 2 + .../fxpp_reverb/src/bw_example_fxpp_reverb.h | 2 + .../fxpp_satur/src/bw_example_fxpp_satur.h | 2 + .../src/bw_example_fxpp_slew_lim.h | 2 + examples/fxpp_svf/src/bw_example_fxpp_svf.h | 2 + examples/fxpp_trem/src/bw_example_fxpp_trem.h | 2 + .../src/bw_example_fxpp_vibrato.h | 2 + examples/fxpp_wah/src/bw_example_fxpp_wah.h | 2 + .../synth_mono/src/bw_example_synth_mono.h | 4 +- .../synth_poly/src/bw_example_synth_poly.h | 2 + .../src/bw_example_synth_simple.h | 2 + .../src/bw_example_synthpp_mono.h | 2 + .../src/bw_example_synthpp_poly.h | 2 + .../src/bw_example_synthpp_simple.h | 2 + include/bw_ap1.h | 9 +- include/bw_ap2.h | 9 +- include/bw_balance.h | 9 +- include/bw_bd_reduce.h | 9 +- include/bw_buf.h | 127 ++++++++++++----- include/bw_chorus.h | 11 +- include/bw_clip.h | 9 +- include/bw_comb.h | 9 +- include/bw_common.h | 134 ++++++++++++++++-- include/bw_comp.h | 9 +- include/bw_config.h | 53 ------- include/bw_delay.h | 9 +- include/bw_dist.h | 11 +- include/bw_drive.h | 10 +- include/bw_drywet.h | 9 +- include/bw_env_follow.h | 9 +- include/bw_env_gen.h | 9 +- include/bw_fuzz.h | 11 +- include/bw_gain.h | 9 +- include/bw_hp1.h | 9 +- include/bw_hs1.h | 11 +- include/bw_hs2.h | 11 +- include/bw_lp1.h | 9 +- include/bw_ls1.h | 11 +- include/bw_ls2.h | 11 +- include/bw_math.h | 9 +- include/bw_mm1.h | 9 +- include/bw_mm2.h | 9 +- include/bw_noise_gate.h | 9 +- include/bw_noise_gen.h | 9 +- include/bw_notch.h | 9 +- include/bw_note_queue.h | 9 +- include/bw_one_pole.h | 9 +- include/bw_osc_filt.h | 9 +- include/bw_osc_pulse.h | 9 +- include/bw_osc_saw.h | 9 +- include/bw_osc_sin.h | 9 +- include/bw_osc_tri.h | 9 +- include/bw_pan.h | 9 +- include/bw_peak.h | 11 +- include/bw_phase_gen.h | 9 +- include/bw_phaser.h | 10 +- include/bw_pink_filt.h | 9 +- include/bw_ppm.h | 9 +- include/bw_rand.h | 11 +- include/bw_reverb.h | 11 +- include/bw_ringmod.h | 9 +- include/bw_satur.h | 9 +- include/bw_slew_lim.h | 9 +- include/bw_sr_reduce.h | 9 +- include/bw_src.h | 9 +- include/bw_src_int.h | 9 +- include/bw_svf.h | 9 +- include/bw_trem.h | 9 +- include/bw_voice_alloc.h | 9 +- include/bw_wah.h | 9 +- 124 files changed, 722 insertions(+), 230 deletions(-) create mode 100644 examples/common/daisy-seed/platform.h create mode 100644 examples/common/vst3/platform.h create mode 100644 examples/common/web/platform.h delete mode 100644 include/bw_config.h diff --git a/TODO b/TODO index cadd112..8f20261 100644 --- a/TODO +++ b/TODO @@ -56,6 +56,9 @@ code: * bw_buf invert src dest order? * check unititialized warnings * voice alloc mode -> voice alloc priority +* should remove bw_config? +* use custom NDEBUG? +* NULL (C) vs BW_SIZE_T (non-C)...? build system: * single header generation diff --git a/examples/common/daisy-seed/daisy-seed.mk b/examples/common/daisy-seed/daisy-seed.mk index 9bab550..5dafd57 100644 --- a/examples/common/daisy-seed/daisy-seed.mk +++ b/examples/common/daisy-seed/daisy-seed.mk @@ -19,4 +19,5 @@ CPPFLAGS += \ CFLAGS += \ -I${ROOT_DIR} \ -I${ROOT_DIR}/../src \ - -I${ROOT_DIR}/../../../include + -I${ROOT_DIR}/../../../include \ + -I${ROOT_DIR}/../../common/daisy-seed diff --git a/examples/common/daisy-seed/platform.h b/examples/common/daisy-seed/platform.h new file mode 100644 index 0000000..e69de29 diff --git a/examples/common/vst3/platform.h b/examples/common/vst3/platform.h new file mode 100644 index 0000000..e69de29 diff --git a/examples/common/web/platform.h b/examples/common/web/platform.h new file mode 100644 index 0000000..8483823 --- /dev/null +++ b/examples/common/web/platform.h @@ -0,0 +1,6 @@ +#ifndef PLATFORM_H +#define PLATFORM_H + +#define INFINITY (__builtin_inff()) + +#endif diff --git a/examples/common/web/web.mk b/examples/common/web/web.mk index 08e7242..7b165dd 100644 --- a/examples/common/web/web.mk +++ b/examples/common/web/web.mk @@ -1,5 +1,6 @@ CC := clang CFLAGS := \ + -DNDEBUG \ -I${ROOT_DIR}/../src \ -I${ROOT_DIR}/../../common/web \ -I${ROOT_DIR}/../../../include \ diff --git a/examples/fx_ap1/src/bw_example_fx_ap1.h b/examples/fx_ap1/src/bw_example_fx_ap1.h index 65790f2..b9cd4b4 100644 --- a/examples/fx_ap1/src/bw_example_fx_ap1.h +++ b/examples/fx_ap1/src/bw_example_fx_ap1.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_ap2/src/bw_example_fx_ap2.h b/examples/fx_ap2/src/bw_example_fx_ap2.h index a87a36e..6c6abbd 100644 --- a/examples/fx_ap2/src/bw_example_fx_ap2.h +++ b/examples/fx_ap2/src/bw_example_fx_ap2.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_balance/src/bw_example_fx_balance.h b/examples/fx_balance/src/bw_example_fx_balance.h index c020bfd..fa8f793 100644 --- a/examples/fx_balance/src/bw_example_fx_balance.h +++ b/examples/fx_balance/src/bw_example_fx_balance.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include #include diff --git a/examples/fx_chorus/src/bw_example_fx_chorus.h b/examples/fx_chorus/src/bw_example_fx_chorus.h index 583db4b..2de4044 100644 --- a/examples/fx_chorus/src/bw_example_fx_chorus.h +++ b/examples/fx_chorus/src/bw_example_fx_chorus.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_clip/src/bw_example_fx_clip.h b/examples/fx_clip/src/bw_example_fx_clip.h index 0a961c8..3592893 100644 --- a/examples/fx_clip/src/bw_example_fx_clip.h +++ b/examples/fx_clip/src/bw_example_fx_clip.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include diff --git a/examples/fx_comb/src/bw_example_fx_comb.h b/examples/fx_comb/src/bw_example_fx_comb.h index 130b378..0aa6ebe 100644 --- a/examples/fx_comb/src/bw_example_fx_comb.h +++ b/examples/fx_comb/src/bw_example_fx_comb.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_comp/src/bw_example_fx_comp.h b/examples/fx_comp/src/bw_example_fx_comp.h index 385d31a..3e70bf5 100644 --- a/examples/fx_comp/src/bw_example_fx_comp.h +++ b/examples/fx_comp/src/bw_example_fx_comp.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_delay/src/bw_example_fx_delay.h b/examples/fx_delay/src/bw_example_fx_delay.h index e195a0b..30ee4bd 100644 --- a/examples/fx_delay/src/bw_example_fx_delay.h +++ b/examples/fx_delay/src/bw_example_fx_delay.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_dist/src/bw_example_fx_dist.h b/examples/fx_dist/src/bw_example_fx_dist.h index 33dd4f7..836f2c1 100644 --- a/examples/fx_dist/src/bw_example_fx_dist.h +++ b/examples/fx_dist/src/bw_example_fx_dist.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include diff --git a/examples/fx_drive/src/bw_example_fx_drive.h b/examples/fx_drive/src/bw_example_fx_drive.h index 007fcd1..c5ce4f8 100644 --- a/examples/fx_drive/src/bw_example_fx_drive.h +++ b/examples/fx_drive/src/bw_example_fx_drive.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include diff --git a/examples/fx_eq_3band/src/bw_example_fx_eq_3band.h b/examples/fx_eq_3band/src/bw_example_fx_eq_3band.h index cc8b3b7..7de2bf1 100644 --- a/examples/fx_eq_3band/src/bw_example_fx_eq_3band.h +++ b/examples/fx_eq_3band/src/bw_example_fx_eq_3band.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include #include diff --git a/examples/fx_flanger/src/bw_example_fx_flanger.h b/examples/fx_flanger/src/bw_example_fx_flanger.h index 108d063..d2238a2 100644 --- a/examples/fx_flanger/src/bw_example_fx_flanger.h +++ b/examples/fx_flanger/src/bw_example_fx_flanger.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_fuzz/src/bw_example_fx_fuzz.h b/examples/fx_fuzz/src/bw_example_fx_fuzz.h index 06b0b4e..eab9fb3 100644 --- a/examples/fx_fuzz/src/bw_example_fx_fuzz.h +++ b/examples/fx_fuzz/src/bw_example_fx_fuzz.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include diff --git a/examples/fx_hp1/src/bw_example_fx_hp1.h b/examples/fx_hp1/src/bw_example_fx_hp1.h index 97bbffe..a208061 100644 --- a/examples/fx_hp1/src/bw_example_fx_hp1.h +++ b/examples/fx_hp1/src/bw_example_fx_hp1.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_hs1/src/bw_example_fx_hs1.h b/examples/fx_hs1/src/bw_example_fx_hs1.h index 9057b18..7f9e2ba 100644 --- a/examples/fx_hs1/src/bw_example_fx_hs1.h +++ b/examples/fx_hs1/src/bw_example_fx_hs1.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_lp1/src/bw_example_fx_lp1.h b/examples/fx_lp1/src/bw_example_fx_lp1.h index 6315db2..e7bb70c 100644 --- a/examples/fx_lp1/src/bw_example_fx_lp1.h +++ b/examples/fx_lp1/src/bw_example_fx_lp1.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_ls1/src/bw_example_fx_ls1.h b/examples/fx_ls1/src/bw_example_fx_ls1.h index 6e70415..f5e463d 100644 --- a/examples/fx_ls1/src/bw_example_fx_ls1.h +++ b/examples/fx_ls1/src/bw_example_fx_ls1.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_mm1/src/bw_example_fx_mm1.h b/examples/fx_mm1/src/bw_example_fx_mm1.h index aca48d8..0502a67 100644 --- a/examples/fx_mm1/src/bw_example_fx_mm1.h +++ b/examples/fx_mm1/src/bw_example_fx_mm1.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_mm2/src/bw_example_fx_mm2.h b/examples/fx_mm2/src/bw_example_fx_mm2.h index d85f9b0..6a8ec26 100644 --- a/examples/fx_mm2/src/bw_example_fx_mm2.h +++ b/examples/fx_mm2/src/bw_example_fx_mm2.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_noise_gate/src/bw_example_fx_noise_gate.h b/examples/fx_noise_gate/src/bw_example_fx_noise_gate.h index 5360968..e430317 100644 --- a/examples/fx_noise_gate/src/bw_example_fx_noise_gate.h +++ b/examples/fx_noise_gate/src/bw_example_fx_noise_gate.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_notch/src/bw_example_fx_notch.h b/examples/fx_notch/src/bw_example_fx_notch.h index fffb4c8..121cd74 100644 --- a/examples/fx_notch/src/bw_example_fx_notch.h +++ b/examples/fx_notch/src/bw_example_fx_notch.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_one_pole/src/bw_example_fx_one_pole.h b/examples/fx_one_pole/src/bw_example_fx_one_pole.h index e6c19f7..f0c5e42 100644 --- a/examples/fx_one_pole/src/bw_example_fx_one_pole.h +++ b/examples/fx_one_pole/src/bw_example_fx_one_pole.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fx_pan/src/bw_example_fx_pan.h b/examples/fx_pan/src/bw_example_fx_pan.h index ebd1cac..5781836 100644 --- a/examples/fx_pan/src/bw_example_fx_pan.h +++ b/examples/fx_pan/src/bw_example_fx_pan.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include #include diff --git a/examples/fx_phaser/src/bw_example_fx_phaser.h b/examples/fx_phaser/src/bw_example_fx_phaser.h index 7a473ec..353daac 100644 --- a/examples/fx_phaser/src/bw_example_fx_phaser.h +++ b/examples/fx_phaser/src/bw_example_fx_phaser.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include enum { diff --git a/examples/fxpp_ap1/src/bw_example_fxpp_ap1.h b/examples/fxpp_ap1/src/bw_example_fxpp_ap1.h index dcfa136..de53b23 100644 --- a/examples/fxpp_ap1/src/bw_example_fxpp_ap1.h +++ b/examples/fxpp_ap1/src/bw_example_fxpp_ap1.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_AP1_H #define _BW_EXAMPLE_FXPP_AP1_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_ap2/src/bw_example_fxpp_ap2.h b/examples/fxpp_ap2/src/bw_example_fxpp_ap2.h index a07795a..f169bda 100644 --- a/examples/fxpp_ap2/src/bw_example_fxpp_ap2.h +++ b/examples/fxpp_ap2/src/bw_example_fxpp_ap2.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_AP2_H #define _BW_EXAMPLE_FXPP_AP2_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_balance/src/bw_example_fxpp_balance.h b/examples/fxpp_balance/src/bw_example_fxpp_balance.h index 098f1b5..10b7c8d 100644 --- a/examples/fxpp_balance/src/bw_example_fxpp_balance.h +++ b/examples/fxpp_balance/src/bw_example_fxpp_balance.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_BALANCE_H #define _BW_EXAMPLE_FXPP_BALANCE_H +#include "platform.h" + #include #include diff --git a/examples/fxpp_bitcrush/src/bw_example_fxpp_bitcrush.h b/examples/fxpp_bitcrush/src/bw_example_fxpp_bitcrush.h index 6d7102f..1e752c0 100644 --- a/examples/fxpp_bitcrush/src/bw_example_fxpp_bitcrush.h +++ b/examples/fxpp_bitcrush/src/bw_example_fxpp_bitcrush.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_BITCRUSH_H #define _BW_EXAMPLE_FXPP_BITCRUSH_H +#include "platform.h" + #include #include diff --git a/examples/fxpp_chorus/src/bw_example_fxpp_chorus.h b/examples/fxpp_chorus/src/bw_example_fxpp_chorus.h index 9556cf8..895a7fb 100644 --- a/examples/fxpp_chorus/src/bw_example_fxpp_chorus.h +++ b/examples/fxpp_chorus/src/bw_example_fxpp_chorus.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_CHORUS_H #define _BW_EXAMPLE_FXPP_CHORUS_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_clip/src/bw_example_fxpp_clip.h b/examples/fxpp_clip/src/bw_example_fxpp_clip.h index 6cc8cef..a6f06a8 100644 --- a/examples/fxpp_clip/src/bw_example_fxpp_clip.h +++ b/examples/fxpp_clip/src/bw_example_fxpp_clip.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_CLIP_H #define _BW_EXAMPLE_FXPP_CLIP_H +#include "platform.h" + #include #include diff --git a/examples/fxpp_comb/src/bw_example_fxpp_comb.h b/examples/fxpp_comb/src/bw_example_fxpp_comb.h index 8e0e1e3..3834c1d 100644 --- a/examples/fxpp_comb/src/bw_example_fxpp_comb.h +++ b/examples/fxpp_comb/src/bw_example_fxpp_comb.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_COMB_H #define _BW_EXAMPLE_FXPP_COMB_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_comp/src/bw_example_fxpp_comp.h b/examples/fxpp_comp/src/bw_example_fxpp_comp.h index 4bb4abd..d34978d 100644 --- a/examples/fxpp_comp/src/bw_example_fxpp_comp.h +++ b/examples/fxpp_comp/src/bw_example_fxpp_comp.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_COMP_H #define _BW_EXAMPLE_FXPP_COMP_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_delay/src/bw_example_fxpp_delay.h b/examples/fxpp_delay/src/bw_example_fxpp_delay.h index 11a479d..d4fe92a 100644 --- a/examples/fxpp_delay/src/bw_example_fxpp_delay.h +++ b/examples/fxpp_delay/src/bw_example_fxpp_delay.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_DELAY_H #define _BW_EXAMPLE_FXPP_DELAY_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_dist/src/bw_example_fxpp_dist.h b/examples/fxpp_dist/src/bw_example_fxpp_dist.h index a401c4a..f65b4e3 100644 --- a/examples/fxpp_dist/src/bw_example_fxpp_dist.h +++ b/examples/fxpp_dist/src/bw_example_fxpp_dist.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_DIST_H #define _BW_EXAMPLE_FXPP_DIST_H +#include "platform.h" + #include #include diff --git a/examples/fxpp_drive/src/bw_example_fxpp_drive.h b/examples/fxpp_drive/src/bw_example_fxpp_drive.h index bf29f0e..9d336ee 100644 --- a/examples/fxpp_drive/src/bw_example_fxpp_drive.h +++ b/examples/fxpp_drive/src/bw_example_fxpp_drive.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_DRIVE_H #define _BW_EXAMPLE_FXPP_DRIVE_H +#include "platform.h" + #include #include diff --git a/examples/fxpp_eq_3band/src/bw_example_fxpp_eq_3band.h b/examples/fxpp_eq_3band/src/bw_example_fxpp_eq_3band.h index 2028ce8..032a95c 100644 --- a/examples/fxpp_eq_3band/src/bw_example_fxpp_eq_3band.h +++ b/examples/fxpp_eq_3band/src/bw_example_fxpp_eq_3band.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_EQ_3BAND_H #define _BW_EXAMPLE_FXPP_EQ_3BAND_H +#include "platform.h" + #include #include #include diff --git a/examples/fxpp_flanger/src/bw_example_fxpp_flanger.h b/examples/fxpp_flanger/src/bw_example_fxpp_flanger.h index 92138d9..6daec7c 100644 --- a/examples/fxpp_flanger/src/bw_example_fxpp_flanger.h +++ b/examples/fxpp_flanger/src/bw_example_fxpp_flanger.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_FLANGER_H #define _BW_EXAMPLE_FXPP_FLANGER_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_fuzz/src/bw_example_fxpp_fuzz.h b/examples/fxpp_fuzz/src/bw_example_fxpp_fuzz.h index ae52ec6..d0975f2 100644 --- a/examples/fxpp_fuzz/src/bw_example_fxpp_fuzz.h +++ b/examples/fxpp_fuzz/src/bw_example_fxpp_fuzz.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_FUZZ_H #define _BW_EXAMPLE_FXPP_FUZZ_H +#include "platform.h" + #include #include diff --git a/examples/fxpp_hp1/src/bw_example_fxpp_hp1.h b/examples/fxpp_hp1/src/bw_example_fxpp_hp1.h index a926e04..fdc74bc 100644 --- a/examples/fxpp_hp1/src/bw_example_fxpp_hp1.h +++ b/examples/fxpp_hp1/src/bw_example_fxpp_hp1.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_HP1_H #define _BW_EXAMPLE_FXPP_HP1_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_hs1/src/bw_example_fxpp_hs1.h b/examples/fxpp_hs1/src/bw_example_fxpp_hs1.h index 2135ca5..2ca2c04 100644 --- a/examples/fxpp_hs1/src/bw_example_fxpp_hs1.h +++ b/examples/fxpp_hs1/src/bw_example_fxpp_hs1.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_HS1_H #define _BW_EXAMPLE_FXPP_HS1_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_lp1/src/bw_example_fxpp_lp1.h b/examples/fxpp_lp1/src/bw_example_fxpp_lp1.h index 6abde2b..e5109f0 100644 --- a/examples/fxpp_lp1/src/bw_example_fxpp_lp1.h +++ b/examples/fxpp_lp1/src/bw_example_fxpp_lp1.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_LP1_H #define _BW_EXAMPLE_FXPP_LP1_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_ls1/src/bw_example_fxpp_ls1.h b/examples/fxpp_ls1/src/bw_example_fxpp_ls1.h index 69597e2..2056fae 100644 --- a/examples/fxpp_ls1/src/bw_example_fxpp_ls1.h +++ b/examples/fxpp_ls1/src/bw_example_fxpp_ls1.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_LS1_H #define _BW_EXAMPLE_FXPP_LS1_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_mm1/src/bw_example_fxpp_mm1.h b/examples/fxpp_mm1/src/bw_example_fxpp_mm1.h index 792e8fa..95f330f 100644 --- a/examples/fxpp_mm1/src/bw_example_fxpp_mm1.h +++ b/examples/fxpp_mm1/src/bw_example_fxpp_mm1.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_MM1_H #define _BW_EXAMPLE_FXPP_MM1_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_mm2/src/bw_example_fxpp_mm2.h b/examples/fxpp_mm2/src/bw_example_fxpp_mm2.h index 107ab43..3dc618f 100644 --- a/examples/fxpp_mm2/src/bw_example_fxpp_mm2.h +++ b/examples/fxpp_mm2/src/bw_example_fxpp_mm2.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_MM2_H #define _BW_EXAMPLE_FXPP_MM2_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_noise_gate/src/bw_example_fxpp_noise_gate.h b/examples/fxpp_noise_gate/src/bw_example_fxpp_noise_gate.h index 9f981a6..2442dd0 100644 --- a/examples/fxpp_noise_gate/src/bw_example_fxpp_noise_gate.h +++ b/examples/fxpp_noise_gate/src/bw_example_fxpp_noise_gate.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_NOISE_GATE_H #define _BW_EXAMPLE_FXPP_NOISE_GATE_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_notch/src/bw_example_fxpp_notch.h b/examples/fxpp_notch/src/bw_example_fxpp_notch.h index 3257b45..e9a7078 100644 --- a/examples/fxpp_notch/src/bw_example_fxpp_notch.h +++ b/examples/fxpp_notch/src/bw_example_fxpp_notch.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_NOTCH_H #define _BW_EXAMPLE_FXPP_NOTCH_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_one_pole/src/bw_example_fxpp_one_pole.h b/examples/fxpp_one_pole/src/bw_example_fxpp_one_pole.h index 65024c2..882d370 100644 --- a/examples/fxpp_one_pole/src/bw_example_fxpp_one_pole.h +++ b/examples/fxpp_one_pole/src/bw_example_fxpp_one_pole.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_ONE_POLE_H #define _BW_EXAMPLE_FXPP_ONE_POLE_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_pan/src/bw_example_fxpp_pan.h b/examples/fxpp_pan/src/bw_example_fxpp_pan.h index e446abe..5ee4370 100644 --- a/examples/fxpp_pan/src/bw_example_fxpp_pan.h +++ b/examples/fxpp_pan/src/bw_example_fxpp_pan.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_PAN_H #define _BW_EXAMPLE_FXPP_PAN_H +#include "platform.h" + #include #include diff --git a/examples/fxpp_phaser/src/bw_example_fxpp_phaser.h b/examples/fxpp_phaser/src/bw_example_fxpp_phaser.h index 122a067..4d383e4 100644 --- a/examples/fxpp_phaser/src/bw_example_fxpp_phaser.h +++ b/examples/fxpp_phaser/src/bw_example_fxpp_phaser.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_PHASER_H #define _BW_EXAMPLE_FXPP_PHASER_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_reverb/src/bw_example_fxpp_reverb.h b/examples/fxpp_reverb/src/bw_example_fxpp_reverb.h index 6772d14..bbafa01 100644 --- a/examples/fxpp_reverb/src/bw_example_fxpp_reverb.h +++ b/examples/fxpp_reverb/src/bw_example_fxpp_reverb.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_REVERB_H #define _BW_EXAMPLE_FXPP_REVERB_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_satur/src/bw_example_fxpp_satur.h b/examples/fxpp_satur/src/bw_example_fxpp_satur.h index 27819b6..3040757 100644 --- a/examples/fxpp_satur/src/bw_example_fxpp_satur.h +++ b/examples/fxpp_satur/src/bw_example_fxpp_satur.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_SATUR_H #define _BW_EXAMPLE_FXPP_SATUR_H +#include "platform.h" + #include #include diff --git a/examples/fxpp_slew_lim/src/bw_example_fxpp_slew_lim.h b/examples/fxpp_slew_lim/src/bw_example_fxpp_slew_lim.h index c43cd2d..6419325 100644 --- a/examples/fxpp_slew_lim/src/bw_example_fxpp_slew_lim.h +++ b/examples/fxpp_slew_lim/src/bw_example_fxpp_slew_lim.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_SLEW_LIM_H #define _BW_EXAMPLE_FXPP_SLEW_LIM_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_svf/src/bw_example_fxpp_svf.h b/examples/fxpp_svf/src/bw_example_fxpp_svf.h index c68028c..3db1d37 100644 --- a/examples/fxpp_svf/src/bw_example_fxpp_svf.h +++ b/examples/fxpp_svf/src/bw_example_fxpp_svf.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_SVF_H #define _BW_EXAMPLE_FXPP_SVF_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_trem/src/bw_example_fxpp_trem.h b/examples/fxpp_trem/src/bw_example_fxpp_trem.h index 1eabf7e..bf98c16 100644 --- a/examples/fxpp_trem/src/bw_example_fxpp_trem.h +++ b/examples/fxpp_trem/src/bw_example_fxpp_trem.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_TREM_H #define _BW_EXAMPLE_FXPP_TREM_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_vibrato/src/bw_example_fxpp_vibrato.h b/examples/fxpp_vibrato/src/bw_example_fxpp_vibrato.h index 77659e4..6175a6e 100644 --- a/examples/fxpp_vibrato/src/bw_example_fxpp_vibrato.h +++ b/examples/fxpp_vibrato/src/bw_example_fxpp_vibrato.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_VIBRATO_H #define _BW_EXAMPLE_FXPP_VIBRATO_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/fxpp_wah/src/bw_example_fxpp_wah.h b/examples/fxpp_wah/src/bw_example_fxpp_wah.h index d5ef61e..674c3a7 100644 --- a/examples/fxpp_wah/src/bw_example_fxpp_wah.h +++ b/examples/fxpp_wah/src/bw_example_fxpp_wah.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_FXPP_WAH_H #define _BW_EXAMPLE_FXPP_WAH_H +#include "platform.h" + #include using namespace Brickworks; diff --git a/examples/synth_mono/src/bw_example_synth_mono.h b/examples/synth_mono/src/bw_example_synth_mono.h index b443627..9d1777d 100644 --- a/examples/synth_mono/src/bw_example_synth_mono.h +++ b/examples/synth_mono/src/bw_example_synth_mono.h @@ -1,7 +1,7 @@ /* * Brickworks * - * Copyright (C) 2022 Orastron Srl unipersonale + * Copyright (C) 2022, 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 @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include #include diff --git a/examples/synth_poly/src/bw_example_synth_poly.h b/examples/synth_poly/src/bw_example_synth_poly.h index da330b9..e4ab0df 100644 --- a/examples/synth_poly/src/bw_example_synth_poly.h +++ b/examples/synth_poly/src/bw_example_synth_poly.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include #include diff --git a/examples/synth_simple/src/bw_example_synth_simple.h b/examples/synth_simple/src/bw_example_synth_simple.h index 638d1b8..582fc3d 100644 --- a/examples/synth_simple/src/bw_example_synth_simple.h +++ b/examples/synth_simple/src/bw_example_synth_simple.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "platform.h" + #include #include #include diff --git a/examples/synthpp_mono/src/bw_example_synthpp_mono.h b/examples/synthpp_mono/src/bw_example_synthpp_mono.h index 53f4e5c..caf7d2a 100644 --- a/examples/synthpp_mono/src/bw_example_synthpp_mono.h +++ b/examples/synthpp_mono/src/bw_example_synthpp_mono.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_SYNTHPP_MONO_H #define _BW_EXAMPLE_SYNTHPP_MONO_H +#include "platform.h" + #include #include #include diff --git a/examples/synthpp_poly/src/bw_example_synthpp_poly.h b/examples/synthpp_poly/src/bw_example_synthpp_poly.h index efe5cfa..0442f57 100644 --- a/examples/synthpp_poly/src/bw_example_synthpp_poly.h +++ b/examples/synthpp_poly/src/bw_example_synthpp_poly.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_SYNTHPP_MONO_H #define _BW_EXAMPLE_SYNTHPP_MONO_H +#include "platform.h" + #include #include #include diff --git a/examples/synthpp_simple/src/bw_example_synthpp_simple.h b/examples/synthpp_simple/src/bw_example_synthpp_simple.h index 7293875..b3953f4 100644 --- a/examples/synthpp_simple/src/bw_example_synthpp_simple.h +++ b/examples/synthpp_simple/src/bw_example_synthpp_simple.h @@ -21,6 +21,8 @@ #ifndef _BW_EXAMPLE_SYNTHPP_SIMPLE_H #define _BW_EXAMPLE_SYNTHPP_SIMPLE_H +#include "platform.h" + #include #include #include diff --git a/include/bw_ap1.h b/include/bw_ap1.h index 2a2c909..ac512c7 100644 --- a/include/bw_ap1.h +++ b/include/bw_ap1.h @@ -20,14 +20,19 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_lp1 bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_lp1 bw_math bw_one_pole }}} * description {{{ * First-order allpass filter (90° shift at cutoff, approaching 180° shift * at high frequencies) with unitary gain. * }}} * changelog {{{ *
    + *
  • Version 0.6.0: + *
      + *
    • Removed dependency on bw_config.
    • + *
    + *
  • *
  • Version 0.5.0: *
      *
    • Added bw_ap1_process_multi().
    • diff --git a/include/bw_ap2.h b/include/bw_ap2.h index c5cf8b0..f577a5e 100644 --- a/include/bw_ap2.h +++ b/include/bw_ap2.h @@ -20,14 +20,19 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole bw_svf }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole bw_svf }}} * description {{{ * Second-order allpass filter (180° shift at cutoff, approaching 360° shift * at high frequencies) with unitary gain. * }}} * changelog {{{ *
        + *
      • Version 0.6.0: + *
          + *
        • Removed dependency on bw_config.
        • + *
        + *
      • *
      • Version 0.5.0: *
          *
        • Added bw_ap2_process_multi().
        • diff --git a/include/bw_balance.h b/include/bw_balance.h index 66e9bb8..cde2009 100644 --- a/include/bw_balance.h +++ b/include/bw_balance.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_gain bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_math bw_one_pole }}} * description {{{ * Stereo balance. * }}} * changelog {{{ *
            + *
          • Version 0.6.0: + *
              + *
            • Removed dependency on bw_config.
            • + *
            + *
          • *
          • Version 0.5.0: *
              *
            • Added bw_balance_process_multi().
            • diff --git a/include/bw_bd_reduce.h b/include/bw_bd_reduce.h index d139a92..3c3b472 100644 --- a/include/bw_bd_reduce.h +++ b/include/bw_bd_reduce.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math }}} * description {{{ * Bit depth reducer. * @@ -31,6 +31,11 @@ * }}} * changelog {{{ *
                + *
              • Version 0.6.0: + *
                  + *
                • Removed dependency on bw_config.
                • + *
                + *
              • *
              • Version 0.5.0: *
                  *
                • Added bw_bd_reduce_process_multi().
                • diff --git a/include/bw_buf.h b/include/bw_buf.h index de897f7..8d560b8 100644 --- a/include/bw_buf.h +++ b/include/bw_buf.h @@ -20,13 +20,18 @@ /*! * module_type {{{ utility }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common }}} * description {{{ * Common operations on buffers. * }}} * changelog {{{ *
                    + *
                  • Version 0.6.0: + *
                      + *
                    • Removed dependency on bw_config.
                    • + *
                    + *
                  • *
                  • Version 0.5.0: *
                      *
                    • Added bw_buf_*_multi().
                    • @@ -61,55 +66,55 @@ extern "C" { /*! api {{{ * #### bw_buf_fill() * ```>>> */ -static inline void bw_buf_fill(float *dest, float k, int n_elems); +static inline void bw_buf_fill(float *dest, float k, BW_SIZE_T n_elems); /*! <<<``` * Sets the first `n_elems` in `dest` to `k`. * * #### bw_buf_neg() * ```>>> */ -static inline void bw_buf_neg(float *dest, const float *src, int n_elems); +static inline void bw_buf_neg(float *dest, const float *src, BW_SIZE_T n_elems); /*! <<<``` * Inverts the sign of the first `n_elems` in `src` and stores the results in * the first `n_elems` of `dest`. * * #### bw_buf_add() * ```>>> */ -static inline void bw_buf_add(float *dest, const float *src, float k, int n_elems); +static inline void bw_buf_add(float *dest, const float *src, float k, BW_SIZE_T n_elems); /*! <<<``` * Adds `k` to the first `n_elems` in `src` and stores the results in the * first `n_elems` of `dest`. * * #### bw_buf_scale() * ```>>> */ -static inline void bw_buf_scale(float *dest, const float *src, float k, int n_elems); +static inline void bw_buf_scale(float *dest, const float *src, float k, BW_SIZE_T n_elems); /*! <<<``` * Multiplies the first `n_elems` in `src` by `k` and stores the results in * the first `n_elems` of `dest`. * * #### bw_buf_mix() * ```>>> */ -static inline void bw_buf_mix(float *dest, const float *src1, const float *src2, int n_elems); +static inline void bw_buf_mix(float *dest, const float *src1, const float *src2, BW_SIZE_T n_elems); /*! <<<``` * Adds the first `n_elems` of `src1` and `src2` and stores the results in * the first `n_elems` of `dest`. * * #### bw_buf_mul() * ```>>> */ -static inline void bw_buf_mul(float *dest, const float *src1, const float *src2, int n_elems); +static inline void bw_buf_mul(float *dest, const float *src1, const float *src2, BW_SIZE_T n_elems); /*! <<<``` * Multiplies the first `n_elems` of `src1` and `src2` and stores the results * in the first `n_elems` of `dest`. * * #### bw_buf_fill_multi() * ```>>> */ -static inline void bw_buf_fill_multi(float **dest, float k, int n_channels, int n_elems); +static inline void bw_buf_fill_multi(float **dest, float k, BW_SIZE_T n_channels, BW_SIZE_T n_elems); /*! <<<``` * Sets the first `n_elems` in each of the `n_channels` buffers `dest` to * `k`. * * #### bw_buf_neg_multi() * ```>>> */ -static inline void bw_buf_neg_multi(float **dest, const float **src, int n_channels, int n_elems); +static inline void bw_buf_neg_multi(float **dest, const float **src, BW_SIZE_T n_channels, BW_SIZE_T n_elems); /*! <<<``` * Inverts the sign of the first `n_elems` in each of the `n_channels` * buffers `src` and stores the results in the first `n_elems` in each of the @@ -117,7 +122,7 @@ static inline void bw_buf_neg_multi(float **dest, const float **src, int n_chann * * #### bw_buf_add_multi() * ```>>> */ -static inline void bw_buf_add_multi(float **dest, const float **src, float k, int n_channels, int n_elems); +static inline void bw_buf_add_multi(float **dest, const float **src, float k, BW_SIZE_T n_channels, BW_SIZE_T n_elems); /*! <<<``` * Adds `k` to the first `n_elems` in each of the `n_channels` buffers `src` * and stores the results in the first `n_elems` in each of the `n_channels` @@ -125,7 +130,7 @@ static inline void bw_buf_add_multi(float **dest, const float **src, float k, in * * #### bw_buf_scale_multi() * ```>>> */ -static inline void bw_buf_scale_multi(float **dest, const float **src, float k, int n_channels, int n_elems); +static inline void bw_buf_scale_multi(float **dest, const float **src, float k, BW_SIZE_T n_channels, BW_SIZE_T n_elems); /*! <<<``` * Multiplies the first `n_elems` in each of the `n_channels` buffers `src` * by `k` and stores the results in the first `n_elems` in each of the @@ -133,7 +138,7 @@ static inline void bw_buf_scale_multi(float **dest, const float **src, float k, * * #### bw_buf_mix_multi() * ```>>> */ -static inline void bw_buf_mix_multi(float **dest, const float **src1, const float **src2, int n_channels, int n_elems); +static inline void bw_buf_mix_multi(float **dest, const float **src1, const float **src2, BW_SIZE_T n_channels, BW_SIZE_T n_elems); /*! <<<``` * Adds the first `n_elems` in each of the `n_channels` buffers `src1` and * `src2` and stores the results in the first `n_elems` in each of the @@ -141,7 +146,7 @@ static inline void bw_buf_mix_multi(float **dest, const float **src1, const floa * * #### bw_buf_mul_multi() * ```>>> */ -static inline void bw_buf_mul_multi(float **dest, const float **src1, const float **src2, int n_channels, int n_elems); +static inline void bw_buf_mul_multi(float **dest, const float **src1, const float **src2, BW_SIZE_T n_channels, BW_SIZE_T n_elems); /*! <<<``` * Multiplies the first `n_elems` in each of the `n_channels` buffers `src1` * and `src2` and stores the results in the first `n_elems` in each of the @@ -153,63 +158,109 @@ static inline void bw_buf_mul_multi(float **dest, const float **src1, const floa /* WARNING: This part of the file is not part of the public API. Its content may * change at any time in future versions. Please, do not use it directly. */ -static inline void bw_buf_fill(float *dest, float k, int n_elems) { - for (int i = 0; i < n_elems; i++) +static inline void bw_buf_fill(float *dest, float k, BW_SIZE_T n_elems) { + BW_ASSERT(!(dest == NULL && n_elems != 0)); + BW_ASSERT(!bw_is_nan(k)); + + for (BW_SIZE_T i = 0; i < n_elems; i++) dest[i] = k; + + BW_ASSERT(!bw_has_nan(dest, n_elems)); } -static inline void bw_buf_neg(float *dest, const float *src, int n_elems) { - for (int i = 0; i < n_elems; i++) +static inline void bw_buf_neg(float *dest, const float *src, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src == NULL) && n_elems != 0)); + BW_ASSERT(!bw_has_nan(src, n_elems)); + + for (BW_SIZE_T i = 0; i < n_elems; i++) dest[i] = -src[i]; + + BW_ASSERT(!bw_has_nan(dest, n_elems)); } -static inline void bw_buf_add(float *dest, const float *src, float k, int n_elems) { - for (int i = 0; i < n_elems; i++) +static inline void bw_buf_add(float *dest, const float *src, float k, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src == NULL) && n_elems != 0)); + BW_ASSERT(!bw_has_nan(src, n_elems)); + BW_ASSERT(!bw_is_nan(k)); + + for (BW_SIZE_T i = 0; i < n_elems; i++) dest[i] = k + src[i]; + + BW_ASSERT(!bw_has_nan(dest, n_elems)); } -static inline void bw_buf_scale(float *dest, const float *src, float k, int n_elems) { - for (int i = 0; i < n_elems; i++) +static inline void bw_buf_scale(float *dest, const float *src, float k, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src == NULL) && n_elems != 0)); + BW_ASSERT(!bw_has_nan(src, n_elems)); + BW_ASSERT(!bw_is_nan(k)); + + for (BW_SIZE_T i = 0; i < n_elems; i++) dest[i] = k * src[i]; + + BW_ASSERT(!bw_has_nan(dest, n_elems)); } -static inline void bw_buf_mix(float *dest, const float *src1, const float *src2, int n_elems) { - for (int i = 0; i < n_elems; i++) +static inline void bw_buf_mix(float *dest, const float *src1, const float *src2, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src1 == NULL || src2 == NULL) && n_elems != 0)); + BW_ASSERT(!bw_has_nan(src1, n_elems)); + BW_ASSERT(!bw_has_nan(src2, n_elems)); + + for (BW_SIZE_T i = 0; i < n_elems; i++) dest[i] = src1[i] + src2[i]; + + BW_ASSERT(!bw_has_nan(dest, n_elems)); } -static inline void bw_buf_mul(float *dest, const float *src1, const float *src2, int n_elems) { - for (int i = 0; i < n_elems; i++) +static inline void bw_buf_mul(float *dest, const float *src1, const float *src2, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src1 == NULL || src2 == NULL) && n_elems != 0)); + BW_ASSERT(!bw_has_nan(src1, n_elems)); + BW_ASSERT(!bw_has_nan(src2, n_elems)); + + for (BW_SIZE_T i = 0; i < n_elems; i++) dest[i] = src1[i] * src2[i]; + + BW_ASSERT(!bw_has_nan(dest, n_elems)); } -static inline void bw_buf_fill_multi(float **dest, float k, int n_channels, int n_elems) { - for (int i = 0; i < n_channels; i++) +static inline void bw_buf_fill_multi(float **dest, float k, BW_SIZE_T n_channels, BW_SIZE_T n_elems) { + BW_ASSERT(!(dest == NULL && n_channels != 0)); + + for (BW_SIZE_T i = 0; i < n_channels; i++) bw_buf_fill(dest[i], k, n_elems); } -static inline void bw_buf_neg_multi(float **dest, const float **src, int n_channels, int n_elems) { - for (int i = 0; i < n_channels; i++) +static inline void bw_buf_neg_multi(float **dest, const float **src, BW_SIZE_T n_channels, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src == NULL) && n_channels != 0)); + + for (BW_SIZE_T i = 0; i < n_channels; i++) bw_buf_neg(dest[i], src[i], n_elems); } -static inline void bw_buf_add_multi(float **dest, const float **src, float k, int n_channels, int n_elems) { - for (int i = 0; i < n_channels; i++) +static inline void bw_buf_add_multi(float **dest, const float **src, float k, BW_SIZE_T n_channels, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src == NULL) && n_channels != 0)); + + for (BW_SIZE_T i = 0; i < n_channels; i++) bw_buf_add(dest[i], src[i], k, n_elems); } -static inline void bw_buf_scale_multi(float **dest, const float **src, float k, int n_channels, int n_elems) { - for (int i = 0; i < n_channels; i++) +static inline void bw_buf_scale_multi(float **dest, const float **src, float k, BW_SIZE_T n_channels, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src == NULL) && n_channels != 0)); + + for (BW_SIZE_T i = 0; i < n_channels; i++) bw_buf_scale(dest[i], src[i], k, n_elems); } -static inline void bw_buf_mix_multi(float **dest, const float **src1, const float **src2, int n_channels, int n_elems) { - for (int i = 0; i < n_channels; i++) +static inline void bw_buf_mix_multi(float **dest, const float **src1, const float **src2, BW_SIZE_T n_channels, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src1 == NULL || src2 == NULL) && n_channels != 0)); + + for (BW_SIZE_T i = 0; i < n_channels; i++) bw_buf_mix(dest[i], src1[i], src2[i], n_elems); } -static inline void bw_buf_mul_multi(float **dest, const float **src1, const float **src2, int n_channels, int n_elems) { - for (int i = 0; i < n_channels; i++) +static inline void bw_buf_mul_multi(float **dest, const float **src1, const float **src2, BW_SIZE_T n_channels, BW_SIZE_T n_elems) { + BW_ASSERT(!((dest == NULL || src1 == NULL || src2 == NULL) && n_channels != 0)); + + for (BW_SIZE_T i = 0; i < n_channels; i++) bw_buf_mul(dest[i], src1[i], src2[i], n_elems); } diff --git a/include/bw_chorus.h b/include/bw_chorus.h index c4f5223..3b44a9a 100644 --- a/include/bw_chorus.h +++ b/include/bw_chorus.h @@ -20,10 +20,10 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} + * version {{{ 0.6.0 }}} * requires {{{ - * bw_buf bw_comb bw_common bw_config bw_delay bw_gain bw_math bw_one_pole - * bw_osc_sin bw_phase_gen + * bw_buf bw_comb bw_common bw_delay bw_gain bw_math bw_one_pole bw_osc_sin + * bw_phase_gen * }}} * description {{{ * Chorus / vibrato / flanger with variable rate and amount. @@ -36,6 +36,11 @@ * }}} * changelog {{{ *
                        + *
                      • Version 0.6.0: + *
                          + *
                        • Removed dependency on bw_config.
                        • + *
                        + *
                      • *
                      • Version 0.5.0: *
                          *
                        • Added bw_chorus_process_multi().
                        • diff --git a/include/bw_clip.h b/include/bw_clip.h index c2bea35..89886a6 100644 --- a/include/bw_clip.h +++ b/include/bw_clip.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * Antialiased hard clipper with parametric bias and gain * (compensation) and output bias removal. @@ -38,6 +38,11 @@ * }}} * changelog {{{ *
                            + *
                          • Version 0.6.0: + *
                              + *
                            • Removed dependency on bw_config.
                            • + *
                            + *
                          • *
                          • Version 0.5.0: *
                              *
                            • First release.
                            • diff --git a/include/bw_comb.h b/include/bw_comb.h index 3498af2..8394122 100644 --- a/include/bw_comb.h +++ b/include/bw_comb.h @@ -20,9 +20,9 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} + * version {{{ 0.6.0 }}} * requires {{{ - * bw_buf bw_common bw_config bw_delay bw_gain bw_math bw_one_pole + * bw_buf bw_common bw_delay bw_gain bw_math bw_one_pole * }}} * description {{{ * Comb filter / delay effect with feedforward and feedback paths. @@ -37,6 +37,11 @@ * }}} * changelog {{{ *
                                + *
                              • Version 0.6.0: + *
                                  + *
                                • Removed dependency on bw_config.
                                • + *
                                + *
                              • *
                              • Version 0.5.0: *
                                  *
                                • Added bw_comb_process_multi().
                                • diff --git a/include/bw_common.h b/include/bw_common.h index 425c6d5..67b42e1 100644 --- a/include/bw_common.h +++ b/include/bw_common.h @@ -20,14 +20,23 @@ /*! * module_type {{{ foundation }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_config }}} + * version {{{ 0.6.0 }}} * description {{{ * A common header to make sure that a bunch of basic definitions are * available and consistent for all Brickworks modules. * }}} * changelog {{{ *
                                    + *
                                  • Version 0.6.0: + *
                                      + *
                                    • Added BW_ASSERT, bw_is_inf(), + * bw_is_nan(), bw_is_finite(), + * bw_has_inf(), bw_has_nan(), + * bw_has_only_finite(), and + * bw_hash_sdbm().
                                    • + *
                                    • Removed dependency on bw_config.
                                    • + *
                                    + *
                                  • *
                                  • Version 0.5.0: *
                                      *
                                    • Fixed typo in the documentation of BW_SIZE_T.
                                    • @@ -58,17 +67,6 @@ #define _BW_COMMON_H /*! api {{{ - * #### bw_config - * At its very beginning, this header `#include`s ``, which is - * a file you can use to supply custom `#include`s and `#define`s that - * override defaults (see [bw_config](bw_config)). - * - * Alternatively, your compiler probably allows you to specify definitions on - * the command line. - * >>> */ -#include -/*! ... - * * #### NULL and BW_SIZE_T * If `NULL` or `BW_SIZE_T` are not defined, then `stddef.h` is `#include`d. * @@ -112,6 +110,114 @@ # define BW_RESTRICT # endif #endif -/*! ... }}} */ +/*! ... + * + * #### BW_ASSERT + * WRITEME + * >>> */ +#ifdef NDEBUG +# define BW_ASSERT(ignore) ((void)0) +#else +# ifndef BW_ASSERT +# include +# define BW_ASSERT assert +# endif +#endif +/*! ... + * + * #### bw_is_inf() + * ```>>> */ +static inline char bw_is_inf(float x); +/*! <<<``` + * WRITEME + * + * #### bw_is_nan() + * ```>>> */ +static inline char bw_is_nan(float x); +/*! <<<``` + * WRITEME + * + * #### bw_is_finite() + * ```>>> */ +static inline char bw_is_finite(float x); +/*! <<<``` + * WRITEME + * + * #### bw_has_inf() + * ```>>> */ +static inline char bw_has_inf(const float *x, BW_SIZE_T n_elems); +/*! <<<``` + * WRITEME + * + * #### bw_has_nan() + * ```>>> */ +static inline char bw_has_nan(const float *x, BW_SIZE_T n_elems); +/*! <<<``` + * WRITEME + * + * #### bw_has_only_finite() + * ```>>> */ +static inline char bw_has_only_finite(const float *x, BW_SIZE_T n_elems); +/*! <<<``` + * WRITEME + * + * #### bw_hash_sdbm() + * ```>>> */ +static inline uint32_t bw_hash_sdbm(const char *string); +/*! <<<``` + * WRITEME + * + * }}} */ + +/*** Implementation ***/ + +/* WARNING: This part of the file is not part of the public API. Its content may + * change at any time in future versions. Please, do not use it directly. */ + +static inline char bw_is_inf(float x) { + union {uint32_t u; float f;} v; + v.f = x; + return (v.u & 0x7fffffff) == 0x7f800000; +} + +static inline char bw_is_nan(float x) { + union {uint32_t u; float f;} v; + v.f = x; + return ((v.u & 0x7f800000) == 0x7f800000) && (v.u & 0x7fffff); +} + +static inline char bw_is_finite(float x) { + union {uint32_t u; float f;} v; + v.f = x; + return (v.u & 0x7f800000) != 0x7f800000; +} + +static inline char bw_has_inf(const float *x, BW_SIZE_T n_elems) { + char ret = 0; + for (BW_SIZE_T i = 0; i < n_elems && !ret; i++) + ret = bw_is_inf(x[i]); + return ret; +} + +static inline char bw_has_nan(const float *x, BW_SIZE_T n_elems) { + char ret = 0; + for (BW_SIZE_T i = 0; i < n_elems && !ret; i++) + ret = bw_is_nan(x[i]); + return ret; +} + +static inline char bw_has_only_finite(const float *x, BW_SIZE_T n_elems) { + char ret = 1; + for (BW_SIZE_T i = 0; i < n_elems && ret; i++) + ret = bw_is_finite(x[i]); + return ret; +} + +static inline uint32_t bw_hash_sdbm(const char *string) { + uint32_t hash = 0; + for (; *string != '\0'; string++) + hash = *string + (hash << 6) + (hash << 16) - hash; + return hash; +} #endif diff --git a/include/bw_comp.h b/include/bw_comp.h index 2d1c9dd..d170b2a 100644 --- a/include/bw_comp.h +++ b/include/bw_comp.h @@ -20,15 +20,20 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} + * version {{{ 0.6.0 }}} * requires {{{ - * bw_common bw_config bw_env_follow bw_gain bw_math bw_one_pole + * bw_common bw_env_follow bw_gain bw_math bw_one_pole * }}} * description {{{ * Feedforward compressor/limiter with independent sidechain input. * }}} * changelog {{{ *
                                        + *
                                      • Version 0.6.0: + *
                                          + *
                                        • Removed dependency on bw_config.
                                        • + *
                                        + *
                                      • *
                                      • Version 0.5.0: *
                                          *
                                        • Added bw_comp_process_multi().
                                        • diff --git a/include/bw_config.h b/include/bw_config.h deleted file mode 100644 index 0f2e1fc..0000000 --- a/include/bw_config.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Brickworks - * - * Copyright (C) 2022 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 - * the Free Software Foundation, version 3 of the License. - * - * Brickworks is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Brickworks. If not, see . - * - * File author: Stefano D'Angelo - */ - -/*! - * module_type {{{ foundation }}} - * version {{{ 0.1.0 }}} - * description {{{ - * Just an empty header file that is always included at the beginning of - * [bw_common.h](bw_common). - * - * Such inclusion is done with angle brackets (i.e., - * `#include `), so you can "override" such file with a custom - * one you provide and appropriately set compiler include path order, or - * otherwise just modify it to your needs. - * - * Its intended purpose is to allow you to `#include` needed files and - * `#define` values/macros that affect Brickworks modules - * (see [bw_common](bw_common)). - * }}} - * changelog {{{ - *
                                            - *
                                          • Version 0.1.0: - *
                                              - *
                                            • First release.
                                            • - *
                                            - *
                                          • - *
                                          - * }}} - */ - -#ifndef _BW_CONFIG_H -#define _BW_CONFIG_H - -// Your definitions here - -#endif diff --git a/include/bw_delay.h b/include/bw_delay.h index b6f0009..9a161d4 100644 --- a/include/bw_delay.h +++ b/include/bw_delay.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_buf bw_common bw_config bw_math }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_buf bw_common bw_math }}} * description {{{ * Interpolated delay line, not smoothed. * @@ -31,6 +31,11 @@ * }}} * changelog {{{ *
                                            + *
                                          • Version 0.6.0: + *
                                              + *
                                            • Removed dependency on bw_config.
                                            • + *
                                            + *
                                          • *
                                          • Version 0.5.0: *
                                              *
                                            • Added bw_delay_process_multi().
                                            • diff --git a/include/bw_dist.h b/include/bw_dist.h index edd2cb3..011d92e 100644 --- a/include/bw_dist.h +++ b/include/bw_dist.h @@ -20,10 +20,10 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} + * version {{{ 0.6.0 }}} * requires {{{ - * bw_clip bw_common bw_config bw_gain bw_hp1 bw_lp1 bw_math bw_mm2 - * bw_one_pole bw_peak bw_satur bw_svf + * bw_clip bw_common bw_gain bw_hp1 bw_lp1 bw_math bw_mm2 bw_one_pole bw_peak + * bw_satur bw_svf * }}} * description {{{ * Distortion effect. @@ -32,6 +32,11 @@ * }}} * changelog {{{ *
                                                + *
                                              • Version 0.6.0: + *
                                                  + *
                                                • Removed dependency on bw_config.
                                                • + *
                                                + *
                                              • *
                                              • Version 0.5.0: *
                                                  *
                                                • First release.
                                                • diff --git a/include/bw_drive.h b/include/bw_drive.h index c56ea5a..ef1d881 100644 --- a/include/bw_drive.h +++ b/include/bw_drive.h @@ -20,10 +20,9 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} + * version {{{ 0.6.0 }}} * requires {{{ - * bw_common bw_config bw_gain bw_math bw_mm2 bw_one_pole bw_peak bw_satur - * bw_svf + * bw_common bw_gain bw_math bw_mm2 bw_one_pole bw_peak bw_satur bw_svf * }}} * description {{{ * Overdrive effect. @@ -32,6 +31,11 @@ * }}} * changelog {{{ *
                                                    + *
                                                  • Version 0.6.0: + *
                                                      + *
                                                    • Removed dependency on bw_config.
                                                    • + *
                                                    + *
                                                  • *
                                                  • Version 0.5.0: *
                                                      *
                                                    • First release.
                                                    • diff --git a/include/bw_drywet.h b/include/bw_drywet.h index cb1f671..620e9da 100644 --- a/include/bw_drywet.h +++ b/include/bw_drywet.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_gain bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_math bw_one_pole }}} * description {{{ * Dry/wet mixer. * }}} * changelog {{{ *
                                                        + *
                                                      • Version 0.6.0: + *
                                                          + *
                                                        • Removed dependency on bw_config.
                                                        • + *
                                                        + *
                                                      • *
                                                      • Version 0.5.0: *
                                                          *
                                                        • First release.
                                                        • diff --git a/include/bw_env_follow.h b/include/bw_env_follow.h index 2097746..9a50f4c 100644 --- a/include/bw_env_follow.h +++ b/include/bw_env_follow.h @@ -20,14 +20,19 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * Envelope follower made of a full-wave rectifier followed by * [bw_one_pole](bw_one_pole) one-pole filter (6 dB/oct). * }}} * changelog {{{ *
                                                            + *
                                                          • Version 0.6.0: + *
                                                              + *
                                                            • Removed dependency on bw_config.
                                                            • + *
                                                            + *
                                                          • *
                                                          • Version 0.5.0: *
                                                              *
                                                            • Added bw_env_follow_process_multi().
                                                            • diff --git a/include/bw_env_gen.h b/include/bw_env_gen.h index 437c08b..9a0faaa 100644 --- a/include/bw_env_gen.h +++ b/include/bw_env_gen.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * Linear ADSR envelope generator. * @@ -40,6 +40,11 @@ * }}} * changelog {{{ *
                                                                + *
                                                              • Version 0.6.0: + *
                                                                  + *
                                                                • Removed dependency on bw_config.
                                                                • + *
                                                                + *
                                                              • *
                                                              • Version 0.5.0: *
                                                                  *
                                                                • Added bw_env_follow_process_multi().
                                                                • diff --git a/include/bw_fuzz.h b/include/bw_fuzz.h index f901109..0c81ac8 100644 --- a/include/bw_fuzz.h +++ b/include/bw_fuzz.h @@ -20,10 +20,10 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} + * version {{{ 0.6.0 }}} * requires {{{ - * bw_common bw_config bw_gain bw_hp1 bw_hs1 bw_lp1 bw_math bw_mm1 - * bw_one_pole bw_satur bw_svf + * bw_common bw_gain bw_hp1 bw_hs1 bw_lp1 bw_math bw_mm1 bw_one_pole bw_satur + * bw_svf * }}} * description {{{ * Fuzz effect. @@ -32,6 +32,11 @@ * }}} * changelog {{{ *
                                                                    + *
                                                                  • Version 0.6.0: + *
                                                                      + *
                                                                    • Removed dependency on bw_config.
                                                                    • + *
                                                                    + *
                                                                  • *
                                                                  • Version 0.5.0: *
                                                                      *
                                                                    • First release.
                                                                    • diff --git a/include/bw_gain.h b/include/bw_gain.h index c745425..5d73ef1 100644 --- a/include/bw_gain.h +++ b/include/bw_gain.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * Gain. * }}} * changelog {{{ *
                                                                        + *
                                                                      • Version 0.6.0: + *
                                                                          + *
                                                                        • Removed dependency on bw_config.
                                                                        • + *
                                                                        + *
                                                                      • *
                                                                      • Version 0.5.0: *
                                                                          *
                                                                        • Added bw_gain_process_multi().
                                                                        • diff --git a/include/bw_hp1.h b/include/bw_hp1.h index 1becef6..6d2e20d 100644 --- a/include/bw_hp1.h +++ b/include/bw_hp1.h @@ -20,14 +20,19 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_lp1 bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_lp1 bw_math bw_one_pole }}} * description {{{ * First-order highpass filter (6 dB/oct) with gain asymptotically * approaching unity as frequency increases. * }}} * changelog {{{ *
                                                                            + *
                                                                          • Version 0.6.0: + *
                                                                              + *
                                                                            • Removed dependency on bw_config.
                                                                            • + *
                                                                            + *
                                                                          • *
                                                                          • Version 0.5.0: *
                                                                              *
                                                                            • Added bw_hp1_process_multi().
                                                                            • diff --git a/include/bw_hs1.h b/include/bw_hs1.h index b75fea1..b4e56eb 100644 --- a/include/bw_hs1.h +++ b/include/bw_hs1.h @@ -20,15 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ - * bw_common bw_config bw_gain bw_lp1 bw_math bw_mm1 bw_one_pole - * }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_lp1 bw_math bw_mm1 bw_one_pole }}} * description {{{ * First-order high shelf filter (6 dB/oct) with unitary DC gain. * }}} * changelog {{{ *
                                                                                + *
                                                                              • Version 0.6.0: + *
                                                                                  + *
                                                                                • Removed dependency on bw_config.
                                                                                • + *
                                                                                + *
                                                                              • *
                                                                              • Version 0.5.0: *
                                                                                  *
                                                                                • Added bw_hs1_process_multi().
                                                                                • diff --git a/include/bw_hs2.h b/include/bw_hs2.h index 6577d8f..b617871 100644 --- a/include/bw_hs2.h +++ b/include/bw_hs2.h @@ -20,15 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ - * bw_common bw_config bw_gain bw_math bw_mm2 bw_one_pole bw_svf - * }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_math bw_mm2 bw_one_pole bw_svf }}} * description {{{ * Second-order high shelf filter (12 dB/oct) with unitary DC gain. * }}} * changelog {{{ *
                                                                                    + *
                                                                                  • Version 0.6.0: + *
                                                                                      + *
                                                                                    • Removed dependency on bw_config.
                                                                                    • + *
                                                                                    + *
                                                                                  • *
                                                                                  • Version 0.5.0: *
                                                                                      *
                                                                                    • Added bw_hs2_process_multi().
                                                                                    • diff --git a/include/bw_lp1.h b/include/bw_lp1.h index dcc9247..164b31e 100644 --- a/include/bw_lp1.h +++ b/include/bw_lp1.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * First-order lowpass filter (6 dB/oct) with unitary DC gain. * @@ -30,6 +30,11 @@ * }}} * changelog {{{ *
                                                                                        + *
                                                                                      • Version 0.6.0: + *
                                                                                          + *
                                                                                        • Removed dependency on bw_config.
                                                                                        • + *
                                                                                        + *
                                                                                      • *
                                                                                      • Version 0.5.0: *
                                                                                          *
                                                                                        • Added bw_lp1_process_multi().
                                                                                        • diff --git a/include/bw_ls1.h b/include/bw_ls1.h index 54c6ebc..7b0cbbd 100644 --- a/include/bw_ls1.h +++ b/include/bw_ls1.h @@ -20,16 +20,19 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ - * bw_common bw_config bw_gain bw_lp1 bw_math bw_mm1 bw_one_pole - * }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_lp1 bw_math bw_mm1 bw_one_pole }}} * description {{{ * First-order low shelf filter (6 dB/oct) with gain asymptotically * approaching unity as frequency increases. * }}} * changelog {{{ *
                                                                                            + *
                                                                                          • Version 0.6.0: + *
                                                                                              + *
                                                                                            • Removed dependency on bw_config.
                                                                                            • + *
                                                                                            + *
                                                                                          • *
                                                                                          • Version 0.5.0: *
                                                                                              *
                                                                                            • Added bw_ls1_process_multi().
                                                                                            • diff --git a/include/bw_ls2.h b/include/bw_ls2.h index 86d0a37..a8b1d16 100644 --- a/include/bw_ls2.h +++ b/include/bw_ls2.h @@ -20,16 +20,19 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ - * bw_common bw_config bw_gain bw_math bw_mm2 bw_one_pole bw_svf - * }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_math bw_mm2 bw_one_pole bw_svf }}} * description {{{ * Second-order low shelf filter (12 dB/oct) with gain asymptotically * approaching unity as frequency increases. * }}} * changelog {{{ *
                                                                                                + *
                                                                                              • Version 0.6.0: + *
                                                                                                  + *
                                                                                                • Removed dependency on bw_config.
                                                                                                • + *
                                                                                                + *
                                                                                              • *
                                                                                              • Version 0.5.0: *
                                                                                                  *
                                                                                                • Added bw_ls2_process_multi().
                                                                                                • diff --git a/include/bw_math.h b/include/bw_math.h index 53ba8c2..f7b6f5d 100644 --- a/include/bw_math.h +++ b/include/bw_math.h @@ -49,8 +49,8 @@ /*! * module_type {{{ utility }}} - * version {{{ 0.4.0 }}} - * requires {{{ bw_common bw_config }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common }}} * description {{{ * A collection of mathematical routines that strive to be better suited to * DSP than, e.g., those supplied by your C standard library. @@ -70,6 +70,11 @@ * }}} * changelog {{{ *
                                                                                                    + *
                                                                                                  • Version 0.6.0: + *
                                                                                                      + *
                                                                                                    • Removed dependency on bw_config.
                                                                                                    • + *
                                                                                                    + *
                                                                                                  • *
                                                                                                  • Version 0.4.0: *
                                                                                                      *
                                                                                                    • Added bw_ceilf(), bw_intfracf(), diff --git a/include/bw_mm1.h b/include/bw_mm1.h index aa62b89..ca06b63 100644 --- a/include/bw_mm1.h +++ b/include/bw_mm1.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_gain bw_lp1 bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_lp1 bw_math bw_one_pole }}} * description {{{ * First-order multimode filter. * }}} * changelog {{{ *
                                                                                                        + *
                                                                                                      • Version 0.6.0: + *
                                                                                                          + *
                                                                                                        • Removed dependency on bw_config.
                                                                                                        • + *
                                                                                                        + *
                                                                                                      • *
                                                                                                      • Version 0.5.0: *
                                                                                                          *
                                                                                                        • Added bw_mm1_process_multi().
                                                                                                        • diff --git a/include/bw_mm2.h b/include/bw_mm2.h index f0b5659..08e01d0 100644 --- a/include/bw_mm2.h +++ b/include/bw_mm2.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_gain bw_math bw_one_pole bw_svf }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_math bw_one_pole bw_svf }}} * description {{{ * Second-order multimode filter. * }}} * changelog {{{ *
                                                                                                            + *
                                                                                                          • Version 0.6.0: + *
                                                                                                              + *
                                                                                                            • Removed dependency on bw_config.
                                                                                                            • + *
                                                                                                            + *
                                                                                                          • *
                                                                                                          • Version 0.5.0: *
                                                                                                              *
                                                                                                            • Added bw_mm2_process_multi().
                                                                                                            • diff --git a/include/bw_noise_gate.h b/include/bw_noise_gate.h index 08a1458..5a30c40 100644 --- a/include/bw_noise_gate.h +++ b/include/bw_noise_gate.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_env_follow bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_env_follow bw_math bw_one_pole }}} * description {{{ * Noise gate with independent sidechain input. * }}} * changelog {{{ *
                                                                                                                + *
                                                                                                              • Version 0.6.0: + *
                                                                                                                  + *
                                                                                                                • Removed dependency on bw_config.
                                                                                                                • + *
                                                                                                                + *
                                                                                                              • *
                                                                                                              • Version 0.5.0: *
                                                                                                                  *
                                                                                                                • Added bw_noise_gate_process_multi().
                                                                                                                • diff --git a/include/bw_noise_gen.h b/include/bw_noise_gen.h index ac69413..8dfb680 100644 --- a/include/bw_noise_gen.h +++ b/include/bw_noise_gen.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_rand }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_rand }}} * description {{{ * Generator of white noise with uniform distribution. * @@ -31,6 +31,11 @@ * }}} * changelog {{{ *
                                                                                                                    + *
                                                                                                                  • Version 0.6.0: + *
                                                                                                                      + *
                                                                                                                    • Removed dependency on bw_config.
                                                                                                                    • + *
                                                                                                                    + *
                                                                                                                  • *
                                                                                                                  • Version 0.5.0: *
                                                                                                                      *
                                                                                                                    • Added bw_noise_gen_process_multi().
                                                                                                                    • diff --git a/include/bw_notch.h b/include/bw_notch.h index a2fba94..d7137d2 100644 --- a/include/bw_notch.h +++ b/include/bw_notch.h @@ -20,14 +20,19 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole bw_svf }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole bw_svf }}} * description {{{ * Second-order notch filter with unitary gain at DC and asymptotically as * frequency increases, and null gain at cutoff frequency. * }}} * changelog {{{ *
                                                                                                                        + *
                                                                                                                      • Version 0.6.0: + *
                                                                                                                          + *
                                                                                                                        • Removed dependency on bw_config.
                                                                                                                        • + *
                                                                                                                        + *
                                                                                                                      • *
                                                                                                                      • Version 0.5.0: *
                                                                                                                          *
                                                                                                                        • Added bw_notch_process_multi().
                                                                                                                        • diff --git a/include/bw_note_queue.h b/include/bw_note_queue.h index 777978e..2ed63c2 100644 --- a/include/bw_note_queue.h +++ b/include/bw_note_queue.h @@ -20,8 +20,8 @@ /*! * module_type {{{ utility }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common }}} * description {{{ * Simple data structure that helps keeping track of note on/off events and * pressed key status. @@ -30,6 +30,11 @@ * }}} * changelog {{{ *
                                                                                                                            + *
                                                                                                                          • Version 0.6.0: + *
                                                                                                                              + *
                                                                                                                            • Removed dependency on bw_config.
                                                                                                                            • + *
                                                                                                                            + *
                                                                                                                          • *
                                                                                                                          • Version 0.5.0: *
                                                                                                                              *
                                                                                                                            • First release.
                                                                                                                            • diff --git a/include/bw_one_pole.h b/include/bw_one_pole.h index 6a4deca..a52225c 100644 --- a/include/bw_one_pole.h +++ b/include/bw_one_pole.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math }}} * description {{{ * One-pole (6 dB/oct) lowpass filter with unitary DC gain, separate attack * and decay time constants, and sticky target-reach threshold. @@ -30,6 +30,11 @@ * }}} * changelog {{{ *
                                                                                                                                + *
                                                                                                                              • Version 0.6.0: + *
                                                                                                                                  + *
                                                                                                                                • Removed dependency on bw_config.
                                                                                                                                • + *
                                                                                                                                + *
                                                                                                                              • *
                                                                                                                              • Version 0.5.0: *
                                                                                                                                  *
                                                                                                                                • Added bw_one_pole_process_multi().
                                                                                                                                • diff --git a/include/bw_osc_filt.h b/include/bw_osc_filt.h index a046bfd..bbef7f6 100644 --- a/include/bw_osc_filt.h +++ b/include/bw_osc_filt.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common }}} * description {{{ * Post-filter to decolorate oscillator waveshapers when antialiasing is on. * @@ -33,6 +33,11 @@ * }}} * changelog {{{ *
                                                                                                                                    + *
                                                                                                                                  • Version 0.6.0: + *
                                                                                                                                      + *
                                                                                                                                    • Removed dependency on bw_config.
                                                                                                                                    • + *
                                                                                                                                    + *
                                                                                                                                  • *
                                                                                                                                  • Version 0.5.0: *
                                                                                                                                      *
                                                                                                                                    • Added bw_osc_filt_process_multi().
                                                                                                                                    • diff --git a/include/bw_osc_pulse.h b/include/bw_osc_pulse.h index 7cbf953..914e1f2 100644 --- a/include/bw_osc_pulse.h +++ b/include/bw_osc_pulse.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * Pulse oscillator waveshaper with variable pulse width (actually, duty * cycle) and PolyBLEP antialiasing. @@ -31,6 +31,11 @@ * }}} * changelog {{{ *
                                                                                                                                        + *
                                                                                                                                      • Version 0.6.0: + *
                                                                                                                                          + *
                                                                                                                                        • Removed dependency on bw_config.
                                                                                                                                        • + *
                                                                                                                                        + *
                                                                                                                                      • *
                                                                                                                                      • Version 0.5.0: *
                                                                                                                                          *
                                                                                                                                        • Added bw_osc_pulse_process_multi().
                                                                                                                                        • diff --git a/include/bw_osc_saw.h b/include/bw_osc_saw.h index 5f21dd3..adf4fea 100644 --- a/include/bw_osc_saw.h +++ b/include/bw_osc_saw.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math }}} * description {{{ * Sawtooth oscillator waveshaper with PolyBLEP antialiasing. * @@ -30,6 +30,11 @@ * }}} * changelog {{{ *
                                                                                                                                            + *
                                                                                                                                          • Version 0.6.0: + *
                                                                                                                                              + *
                                                                                                                                            • Removed dependency on bw_config.
                                                                                                                                            • + *
                                                                                                                                            + *
                                                                                                                                          • *
                                                                                                                                          • Version 0.5.0: *
                                                                                                                                              *
                                                                                                                                            • Added bw_osc_saw_process_multi().
                                                                                                                                            • diff --git a/include/bw_osc_sin.h b/include/bw_osc_sin.h index 7265d11..61d8717 100644 --- a/include/bw_osc_sin.h +++ b/include/bw_osc_sin.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math }}} * description {{{ * Sinusoidal oscillator waveshaper. * @@ -30,6 +30,11 @@ * }}} * changelog {{{ *
                                                                                                                                                + *
                                                                                                                                              • Version 0.6.0: + *
                                                                                                                                                  + *
                                                                                                                                                • Removed dependency on bw_config.
                                                                                                                                                • + *
                                                                                                                                                + *
                                                                                                                                              • *
                                                                                                                                              • Version 0.5.0: *
                                                                                                                                                  *
                                                                                                                                                • Added bw_osc_sin_process_multi().
                                                                                                                                                • diff --git a/include/bw_osc_tri.h b/include/bw_osc_tri.h index a1a1452..f199b66 100644 --- a/include/bw_osc_tri.h +++ b/include/bw_osc_tri.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * Triangle oscillator waveshaper with variable slope (increasing time over * period) and PolyBLEP antialiasing. @@ -31,6 +31,11 @@ * }}} * changelog {{{ *
                                                                                                                                                    + *
                                                                                                                                                  • Version 0.6.0: + *
                                                                                                                                                      + *
                                                                                                                                                    • Removed dependency on bw_config.
                                                                                                                                                    • + *
                                                                                                                                                    + *
                                                                                                                                                  • *
                                                                                                                                                  • Version 0.5.0: *
                                                                                                                                                      *
                                                                                                                                                    • Added bw_osc_pulse_process_multi().
                                                                                                                                                    • diff --git a/include/bw_pan.h b/include/bw_pan.h index 5a5c767..ac6b9e6 100644 --- a/include/bw_pan.h +++ b/include/bw_pan.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_gain bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_math bw_one_pole }}} * description {{{ * Stereo panner. * }}} * changelog {{{ *
                                                                                                                                                        + *
                                                                                                                                                      • Version 0.6.0: + *
                                                                                                                                                          + *
                                                                                                                                                        • Removed dependency on bw_config.
                                                                                                                                                        • + *
                                                                                                                                                        + *
                                                                                                                                                      • *
                                                                                                                                                      • Version 0.5.0: *
                                                                                                                                                          *
                                                                                                                                                        • Added bw_pan_process_multi().
                                                                                                                                                        • diff --git a/include/bw_peak.h b/include/bw_peak.h index 1136295..55b4146 100644 --- a/include/bw_peak.h +++ b/include/bw_peak.h @@ -20,10 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ - * bw_common bw_config bw_gain bw_math bw_mm2 bw_one_pole bw_svf - * }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_gain bw_math bw_mm2 bw_one_pole bw_svf }}} * description {{{ * Second-order peak filter with unitary gain at DC and asymptotically * as frequency increases. @@ -37,6 +35,11 @@ * }}} * changelog {{{ *
                                                                                                                                                            + *
                                                                                                                                                          • Version 0.6.0: + *
                                                                                                                                                              + *
                                                                                                                                                            • Removed dependency on bw_config.
                                                                                                                                                            • + *
                                                                                                                                                            + *
                                                                                                                                                          • *
                                                                                                                                                          • Version 0.5.0: *
                                                                                                                                                              *
                                                                                                                                                            • Added bw_peak_process_multi().
                                                                                                                                                            • diff --git a/include/bw_phase_gen.h b/include/bw_phase_gen.h index 2af476e..3c14405 100644 --- a/include/bw_phase_gen.h +++ b/include/bw_phase_gen.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * Phase generator with portamento and exponential frequency modulation. * @@ -29,6 +29,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                + *
                                                                                                                                                              • Version 0.6.0: + *
                                                                                                                                                                  + *
                                                                                                                                                                • Removed dependency on bw_config.
                                                                                                                                                                • + *
                                                                                                                                                                + *
                                                                                                                                                              • *
                                                                                                                                                              • Version 0.5.0: *
                                                                                                                                                                  *
                                                                                                                                                                • Added bw_phase_gen_process_multi().
                                                                                                                                                                • diff --git a/include/bw_phaser.h b/include/bw_phaser.h index a60d076..75d56b7 100644 --- a/include/bw_phaser.h +++ b/include/bw_phaser.h @@ -20,10 +20,9 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} + * version {{{ 0.6.0 }}} * requires {{{ - * bw_ap1 bw_common bw_config bw_lp1 bw_math bw_one_pole bw_osc_sin - * bw_phase_gen + * bw_ap1 bw_common bw_lp1 bw_math bw_one_pole bw_osc_sin bw_phase_gen * }}} * description {{{ * Phaser containing 4 1st-order allpass filters modulated by a sinusoidal @@ -31,6 +30,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                    + *
                                                                                                                                                                  • Version 0.6.0: + *
                                                                                                                                                                      + *
                                                                                                                                                                    • Removed dependency on bw_config.
                                                                                                                                                                    • + *
                                                                                                                                                                    + *
                                                                                                                                                                  • *
                                                                                                                                                                  • Version 0.5.0: *
                                                                                                                                                                      *
                                                                                                                                                                    • Added bw_phaser_process_multi().
                                                                                                                                                                    • diff --git a/include/bw_pink_filt.h b/include/bw_pink_filt.h index 41fb5d3..2d4a56b 100644 --- a/include/bw_pink_filt.h +++ b/include/bw_pink_filt.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common }}} * description {{{ * Pinking filter. * @@ -34,6 +34,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                        + *
                                                                                                                                                                      • Version 0.6.0: + *
                                                                                                                                                                          + *
                                                                                                                                                                        • Removed dependency on bw_config.
                                                                                                                                                                        • + *
                                                                                                                                                                        + *
                                                                                                                                                                      • *
                                                                                                                                                                      • Version 0.5.0: *
                                                                                                                                                                          *
                                                                                                                                                                        • Added bw_pink_filt_process_multi().
                                                                                                                                                                        • diff --git a/include/bw_ppm.h b/include/bw_ppm.h index 930c60d..c25c34d 100644 --- a/include/bw_ppm.h +++ b/include/bw_ppm.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_env_follow bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_env_follow bw_math bw_one_pole }}} * description {{{ * Digital peak programme meter with adjustable integration time constant. * @@ -30,6 +30,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                            + *
                                                                                                                                                                          • Version 0.6.0: + *
                                                                                                                                                                              + *
                                                                                                                                                                            • Removed dependency on bw_config.
                                                                                                                                                                            • + *
                                                                                                                                                                            + *
                                                                                                                                                                          • *
                                                                                                                                                                          • Version 0.5.0: *
                                                                                                                                                                              *
                                                                                                                                                                            • Added bw_ppm_process_multi().
                                                                                                                                                                            • diff --git a/include/bw_rand.h b/include/bw_rand.h index d27b4dc..52c7c44 100644 --- a/include/bw_rand.h +++ b/include/bw_rand.h @@ -1,7 +1,7 @@ /* * Brickworks * - * Copyright (C) 2022 Orastron Srl unipersonale + * Copyright (C) 2022, 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,8 +20,8 @@ /*! * module_type {{{ utility }}} - * version {{{ 0.2.0 }}} - * requires {{{ bw_common bw_config }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common }}} * description {{{ * Pseudo-random number generators. * @@ -34,6 +34,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                                + *
                                                                                                                                                                              • Version 0.6.0: + *
                                                                                                                                                                                  + *
                                                                                                                                                                                • Removed dependency on bw_config.
                                                                                                                                                                                • + *
                                                                                                                                                                                + *
                                                                                                                                                                              • *
                                                                                                                                                                              • Version 0.2.0: *
                                                                                                                                                                                  *
                                                                                                                                                                                • Refactored API.
                                                                                                                                                                                • diff --git a/include/bw_reverb.h b/include/bw_reverb.h index bbaa8d6..3bf0f4f 100644 --- a/include/bw_reverb.h +++ b/include/bw_reverb.h @@ -20,10 +20,10 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} + * version {{{ 0.6.0 }}} * requires {{{ - * bw_buf bw_common bw_config bw_delay bw_drywet bw_gain bw_lp1 bw_math - * bw_one_pole bw_osc_sin bw_phase_gen + * bw_buf bw_common bw_delay bw_drywet bw_gain bw_lp1 bw_math bw_one_pole + * bw_osc_sin bw_phase_gen * }}} * description {{{ * Stereo reverb. @@ -35,6 +35,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                                    + *
                                                                                                                                                                                  • Version 0.6.0: + *
                                                                                                                                                                                      + *
                                                                                                                                                                                    • Removed dependency on bw_config.
                                                                                                                                                                                    • + *
                                                                                                                                                                                    + *
                                                                                                                                                                                  • *
                                                                                                                                                                                  • Version 0.5.0: *
                                                                                                                                                                                      *
                                                                                                                                                                                    • First release.
                                                                                                                                                                                    • diff --git a/include/bw_ringmod.h b/include/bw_ringmod.h index 1dbc784..54fce07 100644 --- a/include/bw_ringmod.h +++ b/include/bw_ringmod.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * Ring modulator with variable modulation amount. * }}} * changelog {{{ *
                                                                                                                                                                                        + *
                                                                                                                                                                                      • Version 0.6.0: + *
                                                                                                                                                                                          + *
                                                                                                                                                                                        • Removed dependency on bw_config.
                                                                                                                                                                                        • + *
                                                                                                                                                                                        + *
                                                                                                                                                                                      • *
                                                                                                                                                                                      • Version 0.5.0: *
                                                                                                                                                                                          *
                                                                                                                                                                                        • Added bw_ringmod_process_multi().
                                                                                                                                                                                        • diff --git a/include/bw_satur.h b/include/bw_satur.h index 1815aff..a00d23b 100644 --- a/include/bw_satur.h +++ b/include/bw_satur.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * Antialiased tanh-based saturation with parametric bias and gain * (compensation) and output bias removal. @@ -38,6 +38,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                                            + *
                                                                                                                                                                                          • Version 0.6.0: + *
                                                                                                                                                                                              + *
                                                                                                                                                                                            • Removed dependency on bw_config.
                                                                                                                                                                                            • + *
                                                                                                                                                                                            + *
                                                                                                                                                                                          • *
                                                                                                                                                                                          • Version 0.5.0: *
                                                                                                                                                                                              *
                                                                                                                                                                                            • Added bw_satur_process_multi().
                                                                                                                                                                                            • diff --git a/include/bw_slew_lim.h b/include/bw_slew_lim.h index 26d337c..dad4136 100644 --- a/include/bw_slew_lim.h +++ b/include/bw_slew_lim.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math }}} * description {{{ * Slew-rate limiter with separate maximum increasing and decreasing rates. * }}} * changelog {{{ *
                                                                                                                                                                                                + *
                                                                                                                                                                                              • Version 0.6.0: + *
                                                                                                                                                                                                  + *
                                                                                                                                                                                                • Removed dependency on bw_config.
                                                                                                                                                                                                • + *
                                                                                                                                                                                                + *
                                                                                                                                                                                              • *
                                                                                                                                                                                              • Version 0.5.0: *
                                                                                                                                                                                                  *
                                                                                                                                                                                                • Added bw_slew_lim_process_multi().
                                                                                                                                                                                                • diff --git a/include/bw_sr_reduce.h b/include/bw_sr_reduce.h index b26e901..c04a2eb 100644 --- a/include/bw_sr_reduce.h +++ b/include/bw_sr_reduce.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math }}} * description {{{ * Sample rate reducer. * @@ -31,6 +31,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                                                    + *
                                                                                                                                                                                                  • Version 0.6.0: + *
                                                                                                                                                                                                      + *
                                                                                                                                                                                                    • Removed dependency on bw_config.
                                                                                                                                                                                                    • + *
                                                                                                                                                                                                    + *
                                                                                                                                                                                                  • *
                                                                                                                                                                                                  • Version 0.5.0: *
                                                                                                                                                                                                      *
                                                                                                                                                                                                    • Added bw_sr_reduce_process_multi().
                                                                                                                                                                                                    • diff --git a/include/bw_src.h b/include/bw_src.h index 629e16e..5df4c06 100644 --- a/include/bw_src.h +++ b/include/bw_src.h @@ -20,13 +20,18 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math }}} * description {{{ * Aribtrary-ratio IIR sample rate converter. * }}} * changelog {{{ *
                                                                                                                                                                                                        + *
                                                                                                                                                                                                      • Version 0.6.0: + *
                                                                                                                                                                                                          + *
                                                                                                                                                                                                        • Removed dependency on bw_config.
                                                                                                                                                                                                        • + *
                                                                                                                                                                                                        + *
                                                                                                                                                                                                      • *
                                                                                                                                                                                                      • Version 0.5.0: *
                                                                                                                                                                                                          *
                                                                                                                                                                                                        • Added bw_src_process_multi().
                                                                                                                                                                                                        • diff --git a/include/bw_src_int.h b/include/bw_src_int.h index 6a35909..d1c6276 100644 --- a/include/bw_src_int.h +++ b/include/bw_src_int.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math }}} * description {{{ * Integer-ratio IIR sample rate converter. * @@ -33,6 +33,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                                                            + *
                                                                                                                                                                                                          • Version 0.6.0: + *
                                                                                                                                                                                                              + *
                                                                                                                                                                                                            • Removed dependency on bw_config.
                                                                                                                                                                                                            • + *
                                                                                                                                                                                                            + *
                                                                                                                                                                                                          • *
                                                                                                                                                                                                          • Version 0.5.0: *
                                                                                                                                                                                                              *
                                                                                                                                                                                                            • Added bw_src_int_process_multi().
                                                                                                                                                                                                            • diff --git a/include/bw_svf.h b/include/bw_svf.h index 20f4086..e273101 100644 --- a/include/bw_svf.h +++ b/include/bw_svf.h @@ -20,14 +20,19 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole }}} * description {{{ * State variable filter (2nd order, 12 dB/oct) model with separated lowpass, * bandpass, and highpass outputs. * }}} * changelog {{{ *
                                                                                                                                                                                                                + *
                                                                                                                                                                                                              • Version 0.6.0: + *
                                                                                                                                                                                                                  + *
                                                                                                                                                                                                                • Removed dependency on bw_config.
                                                                                                                                                                                                                • + *
                                                                                                                                                                                                                + *
                                                                                                                                                                                                              • *
                                                                                                                                                                                                              • Version 0.5.0: *
                                                                                                                                                                                                                  *
                                                                                                                                                                                                                • Added bw_svf_process_multi().
                                                                                                                                                                                                                • diff --git a/include/bw_trem.h b/include/bw_trem.h index 2589008..1ce647a 100644 --- a/include/bw_trem.h +++ b/include/bw_trem.h @@ -20,15 +20,20 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} + * version {{{ 0.6.0 }}} * requires {{{ - * bw_common bw_config bw_math bw_one_pole bw_osc_sin bw_phase_gen bw_ringmod + * bw_common bw_math bw_one_pole bw_osc_sin bw_phase_gen bw_ringmod * }}} * description {{{ * Tremolo with variable speed and amount. * }}} * changelog {{{ *
                                                                                                                                                                                                                    + *
                                                                                                                                                                                                                  • Version 0.6.0: + *
                                                                                                                                                                                                                      + *
                                                                                                                                                                                                                    • Removed dependency on bw_config.
                                                                                                                                                                                                                    • + *
                                                                                                                                                                                                                    + *
                                                                                                                                                                                                                  • *
                                                                                                                                                                                                                  • Version 0.5.0: *
                                                                                                                                                                                                                      *
                                                                                                                                                                                                                    • Added bw_trem_process_multi().
                                                                                                                                                                                                                    • diff --git a/include/bw_voice_alloc.h b/include/bw_voice_alloc.h index 976f501..9f0cac4 100644 --- a/include/bw_voice_alloc.h +++ b/include/bw_voice_alloc.h @@ -20,13 +20,18 @@ /*! * module_type {{{ utility }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_note_queue }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_note_queue }}} * description {{{ * Basic voice allocator with low/high note priority. * }}} * changelog {{{ *
                                                                                                                                                                                                                        + *
                                                                                                                                                                                                                      • Version 0.6.0: + *
                                                                                                                                                                                                                          + *
                                                                                                                                                                                                                        • Removed dependency on bw_config.
                                                                                                                                                                                                                        • + *
                                                                                                                                                                                                                        + *
                                                                                                                                                                                                                      • *
                                                                                                                                                                                                                      • Version 0.5.0: *
                                                                                                                                                                                                                          *
                                                                                                                                                                                                                        • First release.
                                                                                                                                                                                                                        • diff --git a/include/bw_wah.h b/include/bw_wah.h index 2a01ead..db69b1a 100644 --- a/include/bw_wah.h +++ b/include/bw_wah.h @@ -20,8 +20,8 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.5.0 }}} - * requires {{{ bw_common bw_config bw_math bw_one_pole bw_svf }}} + * version {{{ 0.6.0 }}} + * requires {{{ bw_common bw_math bw_one_pole bw_svf }}} * description {{{ * Wah effect. * @@ -29,6 +29,11 @@ * }}} * changelog {{{ *
                                                                                                                                                                                                                            + *
                                                                                                                                                                                                                          • Version 0.6.0: + *
                                                                                                                                                                                                                              + *
                                                                                                                                                                                                                            • Removed dependency on bw_config.
                                                                                                                                                                                                                            • + *
                                                                                                                                                                                                                            + *
                                                                                                                                                                                                                          • *
                                                                                                                                                                                                                          • Version 0.5.0: *
                                                                                                                                                                                                                              *
                                                                                                                                                                                                                            • Added bw_wah_process_multi().