diff --git a/TODO b/TODO index 1bc11ac..be5821e 100644 --- a/TODO +++ b/TODO @@ -8,8 +8,7 @@ code: * audio rate optional pulse width/slope inputs? * should rather use backward Euler in bw_onepole? * one pole process const input? (return also if const out) -* check const restrict etc. -* define BW_RESTRICT to __restrict or similar when the compiler supports it +* check const restrict size_t etc. * empty functions etc. to keep consistency and forward compatibility? * float in [-1,1] for velocity, pitch bend, mod wheel * should clip slope in triangle? @@ -19,7 +18,6 @@ code: * pan process with no out: should just reset coeffs? * get_y_z1, common strategy? * sqrt(0) and corner cases, common strategy? -* use BW_SIZE_T, check constant types * bw_satur gain compensation to divide by actual gain (derivative) rather than gain parameter? * cite papers, thank authors * add initial state (x0) to reset state of lp1, ap1, mm1, hs1, ls1, others? all? @@ -50,9 +48,6 @@ 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)...? * clearly specify that state is tied to a particular set of coeffs (1:N) * modulation vs process (multi) no update (post 1.0.0)??? diff --git a/examples/common/ios/platform.h b/examples/common/ios/platform.h index 8b13789..962b66f 100644 --- a/examples/common/ios/platform.h +++ b/examples/common/ios/platform.h @@ -1 +1,6 @@ +#ifndef PLATFORM_H +#define PLATFORM_H +#define NDEBUG + +#endif diff --git a/examples/common/web/platform.h b/examples/common/web/platform.h index 8483823..43bd66a 100644 --- a/examples/common/web/platform.h +++ b/examples/common/web/platform.h @@ -1,6 +1,7 @@ #ifndef PLATFORM_H #define PLATFORM_H +#define BW_NO_MATH_H #define INFINITY (__builtin_inff()) #endif diff --git a/examples/common/web/web.mk b/examples/common/web/web.mk index 50f433d..ce47d05 100644 --- a/examples/common/web/web.mk +++ b/examples/common/web/web.mk @@ -1,6 +1,6 @@ CC := clang CFLAGS := \ - -DNDEBUG \ + -DBW_NO_DEBUG \ -I${ROOT_DIR}/../src \ -I${ROOT_DIR}/../../common/web \ -I${ROOT_DIR}/../../../include \ diff --git a/include/bw_ap1.h b/include/bw_ap1.h index ac512c7..4d5eb39 100644 --- a/include/bw_ap1.h +++ b/include/bw_ap1.h @@ -20,7 +20,7 @@ /*! * module_type {{{ dsp }}} - * version {{{ 0.6.0 }}} + * version {{{ 1.0.0 }}} * requires {{{ bw_common bw_lp1 bw_math bw_one_pole }}} * description {{{ * First-order allpass filter (90° shift at cutoff, approaching 180° shift @@ -28,6 +28,12 @@ * }}} * changelog {{{ *