Forums > MaxMSP

How to get the number of the day of the year?

February 6, 2013 | 9:44 am

Hello All,

I like to know if it is an even or a odd day of the year.
In pure data it came with the [date] but how to do this in MaxMsp?

thanks!



pid
February 6, 2013 | 10:02 am
– Pasted Max Patch, click to expand. –

February 6, 2013 | 10:09 am

I think what you’re looking for can be found with mxj now: you’ll get the day of year (today is day #37).
Using pid‘s modulo technique, you’ll then know if the day is odd or even.

p


Viewing 3 posts - 1 through 3 (of 3 total)