beatSpectrum: Computes a beat spectrum

Description Usage Arguments Value Author(s) Examples

View source: R/beatSpectrum.R

Description

Beat spectra represent the periodicity in signal amplitude. It is computed by performing a continuous wavelet transform on the envelope of a preprocessed signal, and processing the average power per frequency band.

Usage

1
beatSpectrum(wave, min_period = 0.005, max_period = 30, dj = 1/32, ...)

Arguments

wave

an R object or path to a wave file

min_period

the minimal rythmicity period expected, in seconds

max_period

the maximal rythmicity period expected, in seconds

dj

the frequency resolution of the cwt (in voices per octave)

...

extra arguments passed to analyze.wavelet()

Value

a spectrum as a data frame. It contains two columns: power and period. The number of rows depend on the resolution and frequency range.

Author(s)

Quentin Geissmann

Examples

1
2
3
4
5
## Not run: 
beatSpectrum(sheep)
beatSpectrum(sheep, min_period=0.005, max_period=30, dj=1/32)

## End(Not run)

sonicscrewdriver documentation built on May 2, 2021, 5:06 p.m.