Description Usage Arguments Details Value Author(s) References Examples
This function CalcANI
computes the auditory nerve image for the given signal.
1 | CalcAni(inSignal, inSampleFreq = 44100, ...)
|
inSignal |
the sound signal to be processed. Either can be a " |
inSampleFreq |
the sample frequency of the input signal (in Hz). |
inDownsamplingFactor |
the integer factor by which the outcome of the auditory model is downsampled (use 1 for no downsampling) if empty or not specified, 4 is used by default. |
inNumOfChannels |
number of channels to use if empty or not specified, 40 is used by default. |
inFirstCBU |
frequency of first channel (in critical band units) if empty or not specified, 2.0 is used by default. |
inCBUStep |
frequency difference between channels (in cbu) if empty or not specified, 0.5 is used by default. |
The outcome of the auditory model normally has a sample frequency of 11025 Hz, but for most calculations this can be downsampled to a lower value (11025/4 is the default).
An object of class "ANI
", which is a list with the following elements:
AuditoryNerveImage |
a matrix of size n x m representing the auditory nerve image, where n is the number of channels (currently 40) and m is the number of samples. |
ANIFreq |
sample freq of ANI (in Hz). |
ANIFilterFreqs |
center frequencies used by the auditory model (in Hz). |
Marc Vidal (R
version). Based on the original code from Koen Tanghe.
Immerseel, L. Van and Martens, J. (1992). "Pitch andvoiced/unvoiced determination with an auditory model". The Journal of the Acoustical Society of America, vol. 91, pp.3511-3526.
1 2 3 | probe <- ShepardTone(293.66, indBLevel = -20)
s <- c(SchumannKurioseGeschichte, numeric(2205), probe)
ANIs <- CalcANI(s, 22050)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.