static float gaussian_filter(float t) // with blackman window { if (t < 0) t = -t; if (t < GAUSSIAN_SUPPORT) return clean(exp(-2.0f * t * t) * sqrt(2.0f / M_PI) * blackman_exact_window(t / GAUSSIAN_SUPPORT)); else return 0.0f; }
static float blackman_filter(float t) { if (t < 0.0f) t = -t; if (t < 3.0f) //return clean(sinc(t) * blackman_window(t / 3.0f)); return clean(sinc(t) * blackman_exact_window(t / 3.0f)); else return (0.0f); }
static Resample_Real blackman_filter(Resample_Real t) { if (t < 0.0f) t = -t; if (t < 3.0f) //return clean(sinc(t) * blackman_window(t / 3.0f)); return clean(sinc(t) * blackman_exact_window(t / 3.0f)); else return (0.0f); }