THE AUDITORY MODELING TOOLBOX

This documentation page applies to an outdated major AMT version. We show it for archival purposes only.
Click here for the documentation menu and here to download the latest AMT (1.6.0).

View the code

Go to function

sig_itdsin - Generate a sinusoid with a interaural time difference

Usage

outsig = sig_itdsin(fc,itd,fs)

Input parameters

fc carrier frequency of the sinusoid (Hz)
itd ITD of the left signal, positive or negative (ms)
fs sampling rate (Hz)

Output parameters

outsig two channel 1 s long sinusoid

sig_itdsin(fc,itd,fs) generates a sinusoid with a interaural time difference of itd 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.