line- ramp time

o s's icon

How can I easily change the ramp time in the attached construction (for both line objects)?

thanks

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

os

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

This might not be the smartest way to do it but it works. Added the trough and peak section just to check I reached the min and max values.

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

Another solution using [line~] instead.

o s's icon

Thanks, perfect!

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

yet another way (without msp):

o s's icon

nice too, thanks!

o s's icon

ok, now I made a little patcher which generates random movement. After a while it stops and I don't know why. It is may be something silly. Can someone please take a look (sometimes it takes a minute or two until it stops)?

thanks

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

os

ak's icon

you have just run out of unique random numbers... see help for 'urn' (esp. second outlet).

btw. what is ($1 $2) for? ^^

o s's icon

I knew it was something that stupid, thanks! And you are right- the $-signs are obsolete- relict from former attempts :-)

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

now I replaced urn with random but the stops are still there, see patch:

ak's icon

see line help "precise timing" tab. Maybe it's not directly related, but if you decrease grain time it won't stop. There is probably some quirk in how [line] decides if it finished. Maybe someone more knowledgeable can shed some light on this.

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

Minimal example:

o s's icon

ok, I set grain time to 5 and it works fine (now for several days), thanks for your help...