Simple timer display
Hey all. I've been trying to create a basic timer display that displays
minutes and seconds but I'm not having much luck. I can create a
timer pretty easily that counts up in seconds, but a value of 145.6
for seconds is not as useful as 2.42min. I'm sure this involves some
pretty basic math that is beyond me.
Thanks for any help!
Here is my basic patch.
Check out the [% ] and [round] objects and that should get you there.
[clocker] and [translate] may help you too.
Thanks. This is turning out to be such a pain in the $@#^. laonikoss, your patch doesn't work as it rounds up when it reaches
30 seconds. Trying to find a better way. As of now, I have a complicated and ugly clock that I put together using a jitter window.
But it still looks bad as it doesn't display .04 for four seconds for example, only .4
Any more suggestions would be helpful.
.4 -> .04
Here's a suite of routines I use for this type of translation.
pauleary: sorry, my bad. here's one with the leading zeroes, just a bit of tweaking:
EDIT: @Lance Ford Jones: hey, that's brilliant! mine's a bit redundant now.. never thought to do it this way, very solid! :)
I'm just assuming that everyone is supplying /% and sprint solutions. Here's another one: