Left/Right balance controlled by 'number' value

olgv's icon

Hi guys,

I have a 'noteout' driven by a 'metro' and I want to control the Left and Right balance of the speakers through a 'number' value. When is negative to be more on the left, when positive to be more on the right...

I can't figure out how to approach this.

Any hints are highly appreciated,

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

Thanks,

Floating Point's icon

you need two scale~ objects, one for the left, one for right scaling from neg to pos , 0-1 and the other the opposite. you'll also need to *~

sorry, you want midi, not audio-- just use CC for panning -- cant remember which CC number it is. just look up a MIDI reference. 0=L, 64=mid, 127 =R

olgv's icon

thank you for this, I will dive in to it and come back with an update,
thanks a lot