CalcANI: Auditory Nerve Image

Description Usage Arguments Details Value Author(s) References Examples

View source: R/CalcANI.R

Description

This function CalcANI computes the auditory nerve image for the given signal.

Usage

1
CalcAni(inSignal, inSampleFreq = 44100, ...)

Arguments

inSignal

the sound signal to be processed. Either can be a "WAVE" object (tuneR), a numeric vector or a "*.wav" file stored in the Working Directory.

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.

Details

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).

Value

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).

Author(s)

Marc Vidal (R version). Based on the original code from Koen Tanghe.

References

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.

Examples

1
2
3
probe <- ShepardTone(293.66, indBLevel = -20)
s <- c(SchumannKurioseGeschichte, numeric(2205), probe)
ANIs <- CalcANI(s, 22050)

m-vidal/pv01 documentation built on Dec. 2, 2020, 1:24 a.m.