logMatrix | R Documentation |
Internal soundgen function.
logMatrix(m, base = 2)
m |
a matrix of numeric values of any dimensions (not necessarily square) |
base |
the base of logarithm |
Log-warps a matrix, as if log-transforming plot axes.
m = matrix(1:90, nrow = 10)
colnames(m) = 1:9
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))))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.