Learn R Programming

seewave (version 1.6.3)

afilter: Amplitude filter

Description

This function deletes all signal which amplitude is below a selected threshold.

Usage

afilter(wave, f, threshold = 5, plot = TRUE,
listen = FALSE, output = "matrix", ...)

Arguments

Value

  • If plot is FALSE, a new wave is returned. The class of the returned object is set with the argument output.

Details

The threshold value is in % relative to the maximal value of wave. Signal inferior to this value is clipped.

See Also

ffilter, oscillo

Examples

Run this code
data(orni)
op<-par(mfrow=c(2,1))
afilter(orni,f=22050)
title(main = "threshold level = 5")
afilter(orni,f=22050,threshold=0.5,colwave="blue")
title(main = "threshold level = 0.5")
par(op)

Run the code above in your browser using DataLab