Hi, pd provides some objects to make easier that task. The object [line] can receive a message box composed by two numbers, the first one sets the number you are using and the second number is the time in milliseconds this first number is going to take to pass through the output of the [line] object. This object makes a linear ramp from the last number to the new number automaticaly using the time you want in the second number in the message. I highly recommend to see the help page.
The other objects are [pipe 1000] and [delay 1000], these objects can make a delay that is going to last the number of milliseconds you want (i put 1000, but you can change it). The first one can delay numbers, bangs, messages and many kinds of data, the second object only delays bangs and has a unique and rare behavior if you feed id with numbers.
Hope it heps. Even though your patch is insanely complicated i`d like a lot the efford you do building everithing from scratch, reminds me the time i was learning the basics on pd and a simple clock/calendar patch takes me more than a hundred boxes.
Hi PD people, i did install pd-extended in ubuntu 15.04 using the raring repositories. All you need to do is modify your sources.list, run in the terminal "sudo gedit /etc/apt/sources.list", this archive saves the URLs to find the software packages, change the line of the pd repo like that: erase the word "vivid" and change it for "raring". Then you need to run "sudo apt-get update && sudo apt-get install pd-extended -y".
The line must look like this at the end of the editing:
deb http://apt.puredata.info/releases raring main