Santiago Barreda
Assistant Professor, Department of Linguistics, UC Davis

Main Research Vignettes CV phonTools Statistics Links


synthfilter [phonTools]


This function performs lowpass, highpass and bandpass filtering by performing an FFT on the entire signal, zeroing out coefficients representing undesired frequency components, and performing an IFFT on the result. This approach may not be appropriate for some applications, but it is useful in some cases. This may be slow for long signals.

In the example below, white noise has been bandpass filtered using this function.




Code used to generate examples:

## make white noise noise = rnorm(5000) ## band-pass filter synthfilter (noise, band = c(.15, .25), verify = TRUE) abline (v = c(.15, .25), col = 2, lty = 'dotted')