Light fading up and down max msp

alexjensen's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hello! We newbies have a problem. We need to know how to repeat an action (we have two lights that should go from one value to another continuesly). So as you see in the patch, when you press the box the light (sliders) move, but we would like them to go up and down all the time by it self when its triggered, and if we can get help to make them fade as well we would be very happy.

robin's icon
Max Patch
Copy patch and select New From Clipboard in Max.

With the minimum of editing to your patch, it could be done like so:

alexjensen's icon

Hello Robin. Thank you very much for your help with the patch, we actually figured out a way to make it work, but now our problem is that we dont know how to change the fading time (the time it takes to change from one value to another). This is probably pretty easy but we are newbies :(

Can you help us out?

Max Patch
Copy patch and select New From Clipboard in Max.

This is the new patch we made:

alexjensen's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Oh we allready fixed it :) But thanks anyway :) If your interested this is our new patcher:

johannes's icon

you guys ike random?

notice that in my example i use the second outlet of the line object to trigger the counter. for every non zero output of the counter a new random destination value, as well as a random time i created.

Max Patch
Copy patch and select New From Clipboard in Max.

j