tuneR (version 1.3.3)

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)

Arguments

x

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

w

Window width (usually odd).

Value

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

Details

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

References

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

Examples

Run this code
# NOT RUN {
  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 DataCamp Workspace