From: UNNIKRISHNAN.P on
hi i chose my thesis on 3d virtual sound...
that is i have to produce virtual sound........
for his i am taking mono phonic sound and i convolve his with hrtfs
of both left and right ear......
but wen i do that i am getting two directional sounds one for left an
d one for right ear......
i really dont know how to sychronize these sounds andpoduce these
sound.....
could somebody help me on this.
please i need it
From: Dave Robinson on
"UNNIKRISHNAN.P " <unnimaua(a)gmail.com> wrote in message <hnaihi$kc3$1(a)fred.mathworks.com>...
> hi i chose my thesis on 3d virtual sound...
> that is i have to produce virtual sound........
> for his i am taking mono phonic sound and i convolve his with hrtfs
> of both left and right ear......
> but wen i do that i am getting two directional sounds one for left an
> d one for right ear......
> i really dont know how to sychronize these sounds andpoduce these
> sound.....
> could somebody help me on this.
> please i need it

If you are asking how do you generate a stereo sound, then simply take the signal you have generated for your two ears, then combine them into a single two column matrix, and output these through your sound card.

type

help sound

at your command prompt.

If you are asking how to add in the necessary phase delay between the 'convolved' signals you have generated, then you need to consider the geometry of virtual sound source from the virtual ears.

1) Knowing the angular direction of the sound source and the spacing of the ears on your virtual head you can compute the difference in the time of arrival of the signal at each ear (say delta).

2) You know your sample rate, so simply apply a slippage equal to delta in terms of samples between the left ear signal and the right ear signal, before forming your stereo signal.

Its an approximation, but should get you started.

Regards

Dave Robinson