Multislider and normalize message?

Aug 14, 2009 at 7:35pm

Multislider and normalize message?

How, exactly, does the “normalize” message work with the multislider?

If I send the message “normalize 1.”, and the max value in multislider is, say, 0.6, shouldn’t all values, including the 0.6, be scaled according to the “1.”?

The included example below does nothing. How can I make normalize scale the multislider values properly?

– Pasted Max Patch, click to expand. –
#45105
Aug 20, 2009 at 11:26am

your example works fine.
Connect a messagebox to the left outlet of your multislider, hit normalize, watch the output.

#162550
Aug 20, 2009 at 11:48am

Ah, thanks! I didn’t realize you had to store the normalized values in a message first, then bang it into the multislider again to make it reflect the normalized values.

#162551
Aug 20, 2009 at 1:35pm

Nevertheless, the [normalize 1.] message should update not only the output of multislider but also the sliders!

#162552
Aug 21, 2009 at 6:08am

Exactly – that’s what I initially thought.

Perhaps this is a bug? And that the sliders *should* update automatically?

#162553
Aug 21, 2009 at 11:49am

Normalize is intended to send a normalized list at the output only. It doesn’t update the values. We should make the documentation clearer about that. Thanks for pointing this out.

#162554
Aug 21, 2009 at 2:03pm

Thanks for pointing it out. I’ll modify the refpage accordingly.

#162555
Aug 21, 2009 at 2:28pm
waj wrote on Thu, 20 August 2009 15:35
Nevertheless, the [normalize 1.] message should update not only the output of multislider but also the sliders!

Please no, it depends on the context and if you need that update its easy enough to patch it that way…

#162556

You must be logged in to reply to this topic.