Forums > MaxMSP

Interaction between multislider and matrixctrl?!


Oct 03 2011 | 1:35 am

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!

Oct 03 2011 | 6:12 am

welcome to Max! :)

try this:


-- Pasted Max Patch, click to expand. --

Oct 03 2011 | 9:27 am

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. --

Oct 03 2011 | 10:29 am

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!

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP