Skip to contents

Creates a band pass WaveFilter between values specified to a Wave object.

Usage

bandpass(from, to, ...)

Arguments

from

Bottom of bandpass frequency (Hz).

to

Top of bandpass frequency (Hz).

...

Further arguments to pass to ffilter.

Value

A WaveFilter object.

Details

This is a simple wrapper function to the seewave ffilter function allowing its use with filterw and pipes.

Examples

if (FALSE) {
nwave <- noise("white", duration=44100, samp.rate=44100)

fwave <- filterWave(nwave, bandpass(from=1000, to=2000))
nwave |> filterWave(bandpass(from=1000, to=2000)) -> fwave
}