summing signals + exponential curves
Hi all.
Is there a MSP version of expr? I need to sum about 6 signals together.
Also, what is the best way to convert a midi stream (0-127) to an exponential curve to control a meter such as a volume slider?
thanks
That was me I think. In this case something like the following patch might be easier though. Change the [pow] argument and mess with the slider to hear the effects.
the volume slider is as linear as midi, no need to scale.
Here's something much like Luke's solution, but using the decibel scale.
You could also take a look at the jcom.map and jcom.dataspace externals, part of Jamoma:
www.jamoma.org
btw, about your first question, you can sum signals using any MSP object, just
connect 6 signals to one inlet and thats it.
I recall that someone made an attempt at an [expr~] object in the very early days of MSP, but it was CPU-intensive and very crash-prone.
There's nothing you can do with expr (or an expr~) that you can't do by patching together mathematical objects. Although this can be a bit of work with complex formulae, at least it works.
Graham Wakefield's [expr~] is here: http://www.maxobjects.com/?v=objects&id_objet=3882&PHPSESSID=9bf789a2a537a8e545113274f8d34ef6
It might be the same one peter mentioned though; haven't used it myself