Learn R Programming

seewave (version 1.1)

resamp: 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.

Examples

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

Run the code above in your browser using DataLab