tuneR (version 1.4.7)

deltas: Calculate delta features

Description

Calculate the deltas (derivatives) of a sequence of features using a w-point window with a simple linear slope.

Usage

deltas(x, w = 9)

Value

Returns a matrix of the delta features (one column per frame).

Arguments

x

Matrix of features. Every column represents one time frame. Each row is filtered separately.

w

Window width (usually odd).

Author

Sebastian Krey krey@statistik.tu-dortmund.de

Details

This function mirrors the delta calculation performed in HTKs ‘feacalc’.

References

Daniel P. W. Ellis: https://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/

Examples

Run this code
  testsound <- normalize(sine(400) + sine(1000) + square(250), "16")
  m <- melfcc(testsound, frames_in_rows=FALSE)
  d <- deltas(m)

Run the code above in your browser using DataLab