slowdown servo move

plumbum's icon

Hi all, Im trying to slowdown my servo last days. I created small patch with "counter". First it see if the new value is higher numbers than the past one, to decide if it should go up or down. Then it should count from the old value to the new one in the speed of metro value. But! It looks like the "bucket" solution is delaying half of the code. I tried to make some compensations, but it was definitely not well done. It looks my skills are not enough for this one. I'm sure that there will be someone who will see the mistake in few seconds. ;]
Perhaps there is as-well some more elegant solution how to control servos speed more curvy. But thats the next step.

plumbum's icon

the patch:

309.smooth02.maxpat
Max Patch
plumbum's icon