View source: R/modulationSpectrum_utilities.R
getAM | R Documentation |
Internal soundgen function
getAM(m, amRange = c(10, 100), amRes = NULL)
m |
numeric matrix of non-negative values with colnames giving temporal modulation frequency |
amRange |
the range of temporal modulation frequencies that we are interested in as "amplitude modulation" (AM), Hz |
amRes |
controls the width of window over which we look for local maxima |
Helper function for calculating amplitude modulation based on the modulation spectrum. Algorithm: averages AM across all FM bins in the positive half of the modulation spectrum and looks for a peak in the specified AM frequency range.
Returns a list with the frequency (Hz) and depth of amplitude modulation (dB relative to global max, normally at 0 Hz).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.