(mathematical) help for a 4 channel mixer

Feb 28, 2013 at 7:53pm

(mathematical) help for a 4 channel mixer

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. –
#66775
Feb 28, 2013 at 7:56pm

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

#240346
Feb 28, 2013 at 8:38pm

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

#240347
Feb 28, 2013 at 8:43pm

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]

#240348
Mar 1, 2013 at 9:43am

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

#240349
Mar 1, 2013 at 10:51am

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

#240350

You must be logged in to reply to this topic.