View source: R/butter_filter.R
butter_filter | R Documentation |
Apply a butterworth filter, high pass or/and low pass, to sound samples. Based on the function butter
butter_filter(sound_samples, low = NA, high = NA, fs, tx, order = 10)
sound_samples |
Numeric vector with the sound samples to filter |
low |
Numeric. Minimum frequency in kHz for the butterworth filter |
high |
Numeric. Maximum frequency in kHz for the butterworth filter |
fs |
Integer with the sampling frequency of the recording |
tx |
Integer indicating the expanded time factor of the recording |
order |
Integer indicating the filter order to apply to the recording |
Butterworth filter
A vector with the filtered sound samples
Bruno Silva
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.