Forums > MaxMSP

Modelling physical behaviour of a knob in Max

November 23, 2012 | 11:41 pm

Hey Guys,

I’m working on a user interface with a knob on an xy pad.
My goal is for example to have the Knob on the Nodes object follow the mousemovement user in a physical way.
So that it’s not directly under the mouse but follows it.

I got some results using line~ and curve~ but wondered if you have some more complex examples by hand.


November 23, 2012 | 11:55 pm

everything what can be programmed can also be described (more concrete than "in a physical way"). so describe it.

besides line~, slide~, lowpassfilters and tapout~ could be your friends for now.


November 24, 2012 | 1:32 am

thanks roman, ultimately I want to programm some behaviour like the multiball object on lemur.
so if you move the knob and release it it will continuing on moving depending on the speed you moved it, if it hits the border of the object it will bounce back from it and so on.

I’m sure this can be done in max, but I think it’s a very complex task.

November 24, 2012 | 12:30 pm

you would be using friction and gravity which are pretty well presented in the application corners if you feel like doing some patch digging

the xy markov player will simply play back what you have presented in varying probabilities/speeds

for more gravity/friction examples search this forum.

November 24, 2012 | 4:34 pm

thanks, that helped a lot!

November 24, 2012 | 4:47 pm

then also look into the pmpd objects.

it will save you some work compared to creating your own code since it i already 2d.


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