processing / processing-sound-archive

Archived Sound Library for Processing
125 stars 62 forks source link

3D sound - enhancement #114

Open arthur109 opened 7 years ago

arthur109 commented 7 years ago

Please implement 3d sound for headphones, stereo speakers..., preferably as simple as possible like:

playSound(soundFile,300,20);

with also a way to position where the ears are like:

camera.rightEar.position.x = 400; camera.rightEar.position.y = 410;

camera.leftEar.position.x = 300; camera.leftEar.position.y = 410;

(maybe even in relative pixels to the camera? so when the camera rotates the ears move with it?)

camera.relativeEars = true;

this would be greatly appreciated

GKFX commented 7 years ago

Wouldn't you also need to specify the z-coordinate, even in a 2D sketch? (Since in a 2D sketch, you might want the user's ears to sit 100px back from the screen, say.)