Forums > MaxMSP

Getting system time


TFF
January 10, 2011 | 12:26 am

I want to use Max to create a 24-hour composition. Rather than have it start at the beginning when the patch is loaded, however, I want it to jump to a certain place based on the listener’s current system time (thus something like cpuclock wouldn’t work).

This is most likely going to be a difficult undertaking, but first things first: I want a method of getting the local system’s time. I know how to do this in Javascript, but this is a function that will be repeated over and over for (ideally) a full 24 hours. If there is a more efficient way to do this, I’d love to know about it.

Best,
-Zach


January 10, 2011 | 2:00 am

The date object?



TFF
January 10, 2011 | 3:37 am

Hey, look at that!

Don’t know why I hadn’t seen this before, eesh. Thanks.


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