how to pan a sound file left to right?

davidlivesound's icon

Does anyone know a patch to pan a sound file left to right as a person moves left to right in front of a camera?
An idea of how I can get started would be great. I was thinking of using cv.jit.parameter, but I haven't managed to do it.
Thanks for your help in advance

MBM's icon

Look at pan2.maxpat and pan2s.maxpat in help from Max.

Regards.

Erick C's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Panning

Joe's icon

Hey

I have modified your patch erick, but the results I am getting are not great, as when it is panning left (o), it doesn't sound that left. I am a little bit stuck with making it sound more "extreme" left & right etc

Max Patch
Copy patch and select New From Clipboard in Max.

woyteg's icon

How would yo want your sound more extreme roght eg. than muting the left chan and leaving right unattenuated?

Joe's icon

I was thinking that yeah, I could easily implement that but I thought there might be a better way of doing it. Because I feel that the left atm isn't very left. If that makes any sense? The right seems to be working great, but when I pan to the Left it just sounds central

Roman Thilenius's icon

what is your input like? it should be 0. - 0.25.

you could also use only one cycle~ and then do *~ -1. +~ 1. to one side.

-110

edited 2 times because i wrote bullshit.