## multislider logarithmic?

May 3, 2011 at 9:17pm

# multislider logarithmic?

How do I best scale a multislider so that it responds logarithmically?

I am controlling partial volumes with TouchOSC and the lower range is too loud, or should I say the steps are too wide, the higher range too low, the steps don’t matter.

How can I scale this range for my 48-slider multislider most efficiently? (I’m German, we like efficient…;-)

K9

#56830
May 3, 2011 at 9:45pm

The [vexpr] object will do what you want, use it in scalarmode and change the argument value to find a balance that suits your application.

– Pasted Max Patch, click to expand. –
#203694
May 3, 2011 at 9:45pm

The [vexpr] object will do what you want, use it in scalarmode and change the argument value to find a balance that suits your application.

– Pasted Max Patch, click to expand. –
#203735
May 3, 2011 at 10:29pm

In most gain or frequency control cases I get myself a 0-1 float from knob or slider and cube the result for nice 0-1 curve.

#203695
May 3, 2011 at 10:29pm

In most gain or frequency control cases I get myself a 0-1 float from knob or slider and cube the result for nice 0-1 curve.

#203736
May 4, 2011 at 3:04pm

Thanks a lot, I will look into that.

#203696
May 4, 2011 at 3:04pm

Thanks a lot, I will look into that.

#203737
May 6, 2011 at 3:50am

cube the result, that’s perfect! nice curved spread of numbers…

#203697
May 6, 2011 at 3:50am

cube the result, that’s perfect! nice curved spread of numbers…

#203738
Apr 30, 2012 at 3:01pm

If I’m using Luke’s vexpr example in scalarmode 1:

pow(\$f1,\$f2)

where my list values go into \$f1, how can I write another vexpr object that will do the reverse operation of this function? I’d like to be able to scale my list values for representation in a multislider only, and to receive non-log-scaled lists from its outlet after I move the bars. Thanks for your help.

#203739
May 1, 2012 at 8:26am

Oh, I think I found it. Sorry this must be obvious to you all. Something like pow(\$f1,(1/\$f2))

#203740
May 1, 2012 at 1:21pm

I’d also point you towards scale for this, albeit with the caveat that its list implementation uses the reciprocal of the exponent rather than the exponent. (bug, has been reported, will probably change in future, but this may be easier than vexpr, though I’m generally a big proponent of vexpr)

– Pasted Max Patch, click to expand. –
#203741

You must be logged in to reply to this topic.