deltas: Calculate delta features

View source: R/deltas.R

deltasR Documentation

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).

Details

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

Value

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

Author(s)

Sebastian Krey krey@statistik.tu-dortmund.de

References

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

Examples

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

tuneR documentation built on May 29, 2024, 11:28 a.m.

Related to deltas in tuneR...