Interaction between multislider and matrixctrl?!

Oct 3, 2011 at 1:35am

Interaction between multislider and matrixctrl?!

Hi,

Very new to max and stuck with following problem:

I’m building a basic sequencer to learn max…

– Pasted Max Patch, click to expand. –

I want to achive following behavior:

(1) When I activate a matrix cell, the corresponding slider should jump to 1 (=maximal value)

(2) When I deactivate a matrix cell, the corresponding slider should jump to 0 (=minimal value)

(3) When a slider is set to a value above 0 (0 is set as minimum value), the corresponding matrix cell should be activated

(4) when a slider is set to 0, the corresponding matrix cell should be deactivated.

My current Patch achieves (1) and (2), but I’m struggling with (3) and (4). Would appreciate any sorts of help!

#59124
Oct 3, 2011 at 6:12am

welcome to Max! :)

try this:

– Pasted Max Patch, click to expand. –
#212374
Oct 3, 2011 at 9:27am

And if you don’t want to use an integer [multislider] you can do something like this using [vexpr]:

– Pasted Max Patch, click to expand. –
#212375
Oct 3, 2011 at 10:29am

Thanks everyone! I wasn’t aware of the funnel and spray functions. Guess i’ll have to go over those tutorials again, I just keep drifting off all the time, never thought I’d actually have so much fun with max :-D!

#212376

You must be logged in to reply to this topic.