Forums > MaxMSP

(mathematical) help for a 4 channel mixer

February 28, 2013 | 7:53 pm

Hi !
i am working on a patch to move a sound source on 4 speakers using a lcd. The basic concept works, but i’m not happy with the result : being in a corner makes only 1 speaker play (that’s what i want), but in the center, the volume is pretty low. I think some maths (log, exp, or something like this ?) would easily solve the problem.
If anyone has the chance to have a look… Thanks !
louis

– Pasted Max Patch, click to expand. –

February 28, 2013 | 7:56 pm

as a side question, is there a way to ignore the mouse position when it goes outside the lcd ?


February 28, 2013 | 8:38 pm

Have a look at the lcd help file, specifically the tab marked "mousing." You may find some useful hints there.


February 28, 2013 | 8:43 pm

first question:
square root

second question:
control a gate by clipping the coords.
i would use if:

[if $i1>=0 && $i1< =100 && $i2>=0 && $i2< =100 then 1 else 0]
|
[gate]


March 1, 2013 | 9:43 am

A good way to do equal-power panning in MSP is to use a [buffer~] containing a square root or a cosine curve as a look up table.

Take a look at the MSP spatialisation examples in the Extras/ Examples Overview menu option. I think pan4s and the quad-spatialiser would be useful to you.

Richard


March 1, 2013 | 10:51 am

Damn, the quad-spatialiser seems to be just ready-made.
Just need to get used to it.
Thank you !


Viewing 6 posts - 1 through 6 (of 6 total)