outsig = itdildsin(fc,itd,ild,fs)
fc | carrier frequency of the sinusoid (Hz) |
itd | ITD of the left signal, this can be positive or negative (ms) |
ild | ILD of the right signal, this can be positive or negative (dB) |
fs | sampling rate (Hz) |
outsig | two channel 1 s long sinusoid |
itdildsin(fc,itd,ild,fs) generates a sinusoid with a interaural time difference of itd, a interaural level difference of ild and a frequency of fc.
The output is scaled to have a maximum value of 1-eps.
B. C. J. Moore. An Introduction to the Psychology of Hearing. Academic Press, 5th edition, 2003.