Balancing mixer patch help please.
Hi folks,
First time posting here so hello, good to meet you all, i'm a btec teacher and a gigging musician. I haven't used max/msp since leaving uni in 2001 so i'm a little out of practise!
I've been working on a kind of auto balancing mixer, where moving one fader up will move all others down by the same amount. I'm aiming for all the faders to equal 100 all the time, so the total volume of all channels remains fairly constant whatever the mix is doing. If anyone's used Absynth recently this kind of mixer can be seen in its osc section.
So far (with the help of someone over at thebigbluelounge) i've managed to get 3 sliders working and controlling each other nicely but with one problem...
if i set slider three to 80, the others will be 10 each equalling 100, then i grab slider two and move it up slightly to 12 but slider three jumps down to 44 (and slider one jumps up to 44). So i'm losing their relative positions and its impossible for me to have settings of say, 60, 30, 10.
I've attached the patch, any help or advice would be appreciated.
Cheers
Steve
Ok i've figured out a simple way to do this using change + and change - then going to incdec objects etc.
it works great as i have it planned on paper but there's a problem with the change + and change - objects and the slider. The slider jumps values when you move it quickly but the change object will only perceive it as one step and output a single bang.
Here's a little example, can anyone think of a way around this?
it's tricky to give you an answer as i'm not sure what your aims are. i tried to DL the patch you provided but the link doesnt seem to work (the file isnt recognised by max on osx).
text attachments seem to work better.
from what i understand, the patch needs to work out the difference between current and previous value then step another slider (up / down) by the same increment... but i dont quite see how this could be used to auto balance a mixer?
anyway, here's a modified version of your patch which might not be that useful! but it could point you in the right direction.
j
there is one little thing missing in your mixer example layout.
this thing needs a swith to turn "balanced mixing" on and off - or, alternatively, it needs a delfault status, like all on 1.
this status of (1. and 1. and 1.) would be the base then of which you
can calculate the changes to those 2 sliders which are not moved by the user.
also, to make it easier, i wuld not use a [gain~] base of "100", mb leave the default of "158"
Thanks enormously for the help here folks, very much appreciated indeed. I'm currently using your suggestions to try and get this working.
Cheers!