diff --git a/TODO b/TODO index 54d2a85..8204ac6 100644 --- a/TODO +++ b/TODO @@ -14,10 +14,8 @@ code: * should clip slope in triangle? * common smoothing policy (as control rate as possible?) - smoothing control? * svf bandpass out polarity too confusing (inverted in mm2)? -* better common config.h (less stuff maybe, or more stuff - decide) * pan process with no out: should just reset coeffs? * get_y_z1, common strategy? -* sqrt(0) and corner cases, common strategy? * 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? @@ -25,7 +23,6 @@ code: * bw_comb: integer target delay values? * bw_svf/lp1 automatically limited (max) prewarp frequency to avoid instability? * prewarp control in all derived filtering modules -* bw_math: review types * src inside distortions? w/ control from outside? * bw_fuzz gain compensation? * make gain of distortions homogeneous? @@ -78,6 +75,7 @@ code: * dump data structures (see note queue) and indicate error precisely * process (multi) no update * examples cpu usage +* bw_math: review types in implementation build system: * make makefiles handle paths with spaces etc diff --git a/include/bw_math.h b/include/bw_math.h index a6f3da7..389c7dc 100644 --- a/include/bw_math.h +++ b/include/bw_math.h @@ -197,16 +197,12 @@ static inline float bw_minf(float a, float b); /*! <<<``` * Returns the minimum of `a` and `b`. * - * `a` and `b` must be finite. - * * #### bw_maxf() * ```>>> */ static inline float bw_maxf(float a, float b); /*! <<<``` * Returns the maximum of `a` and `b`. * - * `a` and `b` must be finite. - * * #### bw_clipf() * ```>>> */ static inline float bw_clipf(float x, float m, float M); @@ -261,6 +257,8 @@ static inline void bw_intfracf(float x, float *i, float *f); * Puts the integer part (floor) of `x` in `i` and the fractional part in * `f`. * + * `x` must be finite. + * * #### bw_rcpf() * ```>>> */ static inline float bw_rcpf(float x);