soundgen (version 1.5.0)

logMatrix: Log-warp matrix

Description

Internal soundgen function.

Usage

logMatrix(m, base = 2)

Arguments

m

a matrix of numeric values of any dimensions (not necessarily square)

base

the base of logarithm

Details

Log-warps a matrix, as if log-transforming plot axes.

Examples

Run this code
# NOT RUN {
m = matrix(1:90, nrow = 10)
soundgen:::logMatrix(m, base = 2)
soundgen:::logMatrix(m, base = 10)

soundgen:::logMatrix(m = matrix(1:9, nrow = 1), base = 2)

# }
# NOT RUN {
s = spectrogram(soundgen(), 16000, output = 'original')
image(log(t(soundgen:::logMatrix(s, base = 2))))
# }

Run the code above in your browser using DataLab