butter_filter: Apply a butterworth filter to sound samples

View source: R/butter_filter.R

butter_filterR Documentation

Apply a butterworth filter to sound samples

Description

Apply a butterworth filter, high pass or/and low pass, to sound samples. Based on the function butter

Usage

butter_filter(sound_samples, low = NA, high = NA, fs, tx, order = 10)

Arguments

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

Details

Butterworth filter

Value

A vector with the filtered sound samples

Author(s)

Bruno Silva


soundClass documentation built on May 30, 2022, 1:07 a.m.