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 or a Sample object created loading a wav file with loadSample (package Sound).
f sampling frequency of wave (in Hz).
g new sampling frequency of wave (in Hz).

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@univ-tours.fr

Examples

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

[Package seewave version 1.4.2 Index]