| At 10:04 PM +0000 2/9/97, Marc Resibois wrote:
>Hi dear Csounders,
>
>I'm looking to the relation between a mono sound coming at a certain angle
>and the left and rigth decomposition that results. I know that there is a
>simple model for that (not taking any head diffraction into effect) but it
>seems that I've failed to record this somewhere in my files.
>
>Can anybody help me with this ?
>
>Thanks in advance,
>
>Marc.
If I understand your question correctly (with head modeled as a point), I
think you're looking for the polar to cartesian conversion:
theta = angle with respect to listener (in radians)
(0 is directly to listener right, pi/2 is in front of
listener,
pi is left of listener, 3pi/2 is behind the listener)
R = distance of sound source from listener (say, 0 <= R <= .5)
The leftright, frontback decomposition is:
kleftright = R cos(theta)
kfrontback = R sin(theta)
If you're using this with pan (for kx, 0 = left, 1 = right; for ky, 1 =
front, 0 =back ),
then kx = .5 + kleftright, and ky = .5 + kfrontback
Or if you don't want to use pan for left-right, let Rmax = 1,
outs (1-(kleftright+.5))*asig, (kleftright+.5)*asig
Hope this helped!
Dan Hosken
dwhosken@students.wisc.edu
Computer Music Studio
Composition Department
School of Music
University of Wisconsin-Madison
|