Numerical Stack Overflow
Hi, I’m more used to PureData however, trying to create a patch within Max for a project.
I am basically trying to move a fader and then 5 seconds after the slider has stopped being used i want it to slowly revert back to its original setting of 0, by -10 every second. So that when you move it, then leave it, it will change back. However, no matter how i do it i always get a stack overflow.
Can anyone please help! It’s very important.
I have tried to use a pipe object but it always repeats the movement of the slider over and over.
Any help would be much appreciated,
Trying thinking about it like a math equation. Lets say that on the mouse up the slider’s value is 78. If you divide by 10 then multiply by 10 you will go from 7 to then 70 (using ONLY integers and not floating point numbers). Then you can just subtract by 10.
All of those intervals can be control by a metro object which can be shut off by using "== 0", checking for the sliders value to equal 0.
Let me know if you still need help.
In these situations it is best to separate your UI from your actual data. Something like this might work for you:
----------begin_max5_patcher---------- 878.3oc4Xs1aaBCE8yI+JtJpRUZpqx17HgooIs82XpZxAbS8FXivl9Ts+1me .pIsEJCZxV09BfcH1m64buGaycymsXs7ZlZA7I36vrY2Me1LWW1Nl0zd1hB5 0o4Tk60VjJKJXB8hS7+llcs10+WZ64boPKnELWueshSyguIyyZ+4RpN8BtXy OpXoZ+DSPnSQm.AnP6Mbh65pSQvYM+Gdlavjq+4GCiaGHQcAWjyzNXg2ZxU7 acSN1NpMcWsYsetPmhQ3jX7I1mH3n3D2SKIQglmvaMolwWVqamf1QprhoLgO UykhsBgnk9H.augZt.mY+O2Oet8xISjeOVwzGC5KXvkz7ZFHO20PkyyXUfRZ aUw.tBDRv.7xZ8osCRNWvRk0B2HQFsNEEusLE3tQR5Pmh9mTmBCbgPT3dSm9 LbEkqUPDBgfBEP0.Wv0V50KbFcR.kUxTFKCzRPoYkPl7JgsABjWZjyGk4OXn GzKKjgiVHajPBZkSIibDQDoCkL7ujR9lJJz5LtDJpUZXso3QLd2pfUM4+tpA LhzqcE48C4wtMil9PeQdSHSb4KgQsWew.G8hAN4MCsB1Ul44YJcIM8WlpHzD VMB6iRuLGg6SdCB5MJ6Pd2M3ayE7couoj4wwhEixWpCdw3BA7oSJ9L.igQTO jBZL476RJjtHEts51e6sjdb1rSfdB8Now9MxD1WNCIZOlyLZdoamyZkcMKy9 JnJ3FYcEPS00FJwuGiI3i5sQZMUhi6kzBd+3i1QJlRPKUWH0OXP3jKDI98hs LpORCmrGyzNOWRGaMXcwZV0D3f3vsxb76doSNHb+aFslJ1LNlnfoTzMrmmqv zvQ3ImkzrOu.+Iph6fgH+esFFYkKgw32zyZX3+kWCqqrliL1aGg8m7.AGQlN U4Ofvp39xeRduj9XO7zCSmSBHu9Z7KmNmzY1ihuQPymlui+qFL.CDer5JXR5 pTo2JkQIztowoWO4SS4Pps+ciMkYaIosCUqmF7HZyXJMW39V.a+R67NWvyxX hs+DBE7rRooHsACDRj0wHHvulahmZ1oEwcXglWjf67KKLzvvd7hWMLR9yBio BIz.fzSv89FS1cTOLLgOr7D9UvzS.99FS3gPSnCKjRFRg5gESKGBjNrUcCgk VdXEtgjea278gFSupxQl.lLMte9uAru5LCE -----------end_max5_patcher-----------
Works perfectly, thanks very much to both of you.