We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a5c2f7 commit 163d0fcCopy full SHA for 163d0fc
src/rvoice/fluid_iir_filter.cpp
@@ -60,7 +60,7 @@ extern "C" void fluid_iir_filter_init_table(fluid_real_t sample_rate)
60
template<typename R>
61
static R interp_lin(R y0, R y1, R x0, R x1, R x)
62
{
63
- return std::fabs(x1 - x0 < 1) // do not interpolate, if difference is less than a single cent
+ return std::fabs(x1 - x0) < 1 // do not interpolate, if difference is less than a single cent
64
? y0
65
: (y0 * (x1 - x) + y1 * (x - x0)) / (x1 - x0);
66
}
0 commit comments