warpMatrix: Warp matrix

View source: R/utilities_math.R

warpMatrixR Documentation

Warp matrix

Description

Internal soundgen function

Usage

warpMatrix(m, scaleFactor, interpol = c("approx", "spline")[1])

Arguments

m

matrix (rows = frequency bins, columns = time)

scaleFactor

1 = no change, >1 = raise formants

interpol

interpolation method

Details

Warps or scales each column of a matrix (normally a spectrogram).

Examples

a = matrix(1:12, nrow = 4)
a
soundgen:::warpMatrix(a, 1.5, 'approx')
soundgen:::warpMatrix(a, 1/1.5, 'spline')

soundgen documentation built on Aug. 14, 2022, 5:05 p.m.