resamp {seewave}R Documentation

Resample a time wave

Description

This function resamples (down- or over-samples) a time wave. This corresponds to a sampling frequency change.

Usage

resamp(wave, f, g)

Arguments

wave data describing a time wave.
f sampling frequency of wave.
g new sampling frequency of wave.

Value

Data are returned as a one-column matrix.

Note

Resampling might change frequency properties of the time wave.

Author(s)

Jérôme Sueur jerome.sueur@ibaic.u-psud.fr

Examples

data(peewit)
# downsampling
a<-resamp(peewit,f=22050,g=11025)
# oversampling
b<-resamp(peewit,f=22050,g=44100)

[Package seewave version 1.2 Index]