THE AUDITORY MODELING TOOLBOX

Applies to version: 1.0.0

View the code

Go to function

sig_ildsin - Sinusoid with a interaural level difference (ILD)

Usage

outsig = sig_itdsin(fc,ild,fs)

Input parameters

fc carrier frequency of the sinusoid (Hz)
ild ILD of the right signal, positive or negative (dB)
fs sampling rate (Hz)

Output parameters

outsig two channel 1 s long sinusoid

Description

sig_ildsin(fc,ild,fs) generates a sinusoid with a interaural level difference of ild and a frequency of fc.

The output is scaled to have a maximum value of 1-eps.

References:

B. C. J. Moore. An Introduction to the Psychology of Hearing. Academic Press, 5th edition, 2003.