360 degree pot, spike issue.

TwinLights's icon

Hi all,

Im trying to create a sound installation that is controlled by compass direction. So when the user faces a certain direction they will hear a certain sound. I have the 360degree of space split into different sections and ranges for certain sounds. As the user moves closer to the exact direction they need to face, a fader will increase gradually until it hits 0dB and then once the user moves past that point it will begin to decrease from 0dB.

The problem is that when the compass hits around 0-360 degree crossover area, all the faders will jump to max, because the numbers being sent have all turned positive. Ive been trying to figure out a way to filter out this problem but I am running out of ideas.

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

Also, Im fairly aware that the problem is probably in my logic somewhere earlier in the patch and I may be trying to cure the symptoms instead of the original prob, but hopefully thats not the case!

TwinLights's icon

Thanks for the reply nicolas but Im afraid I dont really see the applicaton for your solution. I already have expressions that ensure the faders move up and down depending on the position of the dial. My problem is that when the dial crosses from 0-360 or vice versa, everything jumps to max dB. Or am I missing the solution in your patch?

ćwiek's icon
Max Patch
Copy patch and select New From Clipboard in Max.

you can also checj this :)

mharter's icon