warpMatrix: Warp matrix

View source: R/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 Sept. 12, 2024, 6:29 a.m.