import clock to max?

Apr 30, 2006 at 6:08pm

import clock to max?

hello!

My patch needs to know “what time it is!”

there are some way to bring the hours and minuts of the operative system (windows in this case) to my patch?

in js object… in the help there are one clock! so i think thas is possible to ouput the “time” of that object… but i’dont understand the js language so… can you help me to create two outputs from js object with the hour nad minute information!?

tkx for your time!!!

#25727
Apr 30, 2006 at 6:19pm

[time(
|
[date]

#76059
Apr 30, 2006 at 6:27pm

sory but i don’t understand!

#76060
Apr 30, 2006 at 6:55pm

Search for “time” and “date” in Max45ReferenceManual.pdf and you will
be enlightened.

Best,
Trond

#76061
Apr 30, 2006 at 7:05pm

objetc “date”, messages “date” and “time”.

Ignacio de Campos

#76062
May 1, 2006 at 1:03pm

TKX people!!!! problem solved!!!

max v2;
#N vpatcher 129 100 600 487;
#P origin -15 0;
#P outlet 216 335 15 0;
#P outlet 6 335 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 6 312 54 9109513 prepend set;
#P outlet 232 335 15 0;
#P newex 232 312 54 9109513 prepend set;
#P message 155 265 54 9109513 append / $1;
#P message 72 265 54 9109513 append / $1;
#P message 6 292 62 9109513 1 / 5 / 2006;
#P newex 6 265 54 9109513 prepend set;
#P number 155 240 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 72 240 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 6 240 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 155 210 27 9109513 int;
#P newex 72 210 27 9109513 int;
#P newex 6 210 27 9109513 int;
#P newex 6 168 53 9109513 t b b b i;
#P newex 6 146 176 9109513 unpack 0 0 0;
#P newex 6 125 40 9109513 date;
#P message 390 265 54 9109513 append : $1;
#P message 307 265 54 9109513 append : $1;
#P message 232 292 62 9109513 14 : 2 : 42;
#P newex 241 265 54 9109513 prepend set;
#P number 390 240 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 307 240 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 241 240 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 390 210 27 9109513 int;
#P newex 307 210 27 9109513 int;
#P newex 241 210 27 9109513 int;
#P newex 241 168 53 9109513 t b b b i;
#P message 6 106 26 9109513 date;
#P toggle 226 27 15 0;
#P newex 226 48 54 9109513 metro 1000;
#P message 226 105 26 9109513 time;
#P newex 241 146 176 9109513 unpack 0 0 0;
#P newex 226 125 40 9109513 date;
#P fasten 3 0 5 0 231 83 11 83;
#P connect 5 0 17 0;
#P connect 17 0 18 0;
#P connect 18 0 19 0;
#P fasten 19 1 20 0 25 199 11 199;
#P connect 21 0 23 0;
#P connect 23 0 26 0;
#P connect 26 0 27 0;
#P fasten 28 0 27 0 77 287 11 287;
#P fasten 29 0 27 0 160 287 11 287;
#P connect 27 0 32 0;
#P connect 32 0 33 0;
#P fasten 19 3 20 1 53 206 28 206;
#P fasten 19 2 21 0 39 195 77 195;
#P connect 20 0 24 0;
#P connect 24 0 28 0;
#P connect 18 1 21 1;
#P fasten 19 0 22 0 11 190 160 190;
#P connect 22 0 25 0;
#P connect 25 0 29 0;
#P connect 18 2 22 1;
#P fasten 10 0 34 0 246 259 221 259;
#P connect 4 0 3 0;
#P connect 3 0 2 0;
#P connect 2 0 0 0;
#P fasten 6 0 14 0 246 191 237 191;
#P fasten 16 0 14 0 395 287 237 287;
#P fasten 15 0 14 0 312 287 237 287;
#P fasten 13 0 14 0 246 287 237 287;
#P connect 14 0 30 0;
#P connect 30 0 31 0;
#P connect 0 1 1 0;
#P connect 1 0 6 0;
#P fasten 6 2 7 0 274 200 246 200;
#P connect 7 0 10 0;
#P connect 10 0 13 0;
#P fasten 6 3 7 1 288 206 263 206;
#P fasten 6 1 8 0 260 196 312 196;
#P connect 8 0 11 0;
#P connect 11 0 15 0;
#P connect 1 1 8 1;
#P fasten 6 0 9 0 246 191 395 191;
#P connect 9 0 12 0;
#P connect 12 0 16 0;
#P connect 1 2 9 1;
#P pop;

#76063
May 2, 2006 at 7:38pm

though i am a fan of shadocks strategy, i would suggest:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 68 216 78 196617 21: 36: 39;
#P newex 68 195 111 196617 sprintf set %i: %i: %i;
#P toggle 53 75 15 0;
#P window linecount 2;
#P newex 53 96 54 196617 metro 1000;
#P window linecount 1;
#P message 53 153 26 196617 time;
#P newex 53 173 40 196617 date;
#P connect 0 1 4 0;
#P connect 4 0 5 0;
#P connect 1 0 0 0;
#P connect 2 0 1 0;
#P connect 3 0 2 0;
#P window clipboard copycount 6;

#76064
May 3, 2006 at 6:11am

Vincent Goudard wrote:
> though i am a fan of shadocks strategy, i would suggest:

Yours will be ugly in the morning, but that would look nicer…

Stefan

#P window setfont “Sans Serif” 36.;
#P window linecount 1;
#P message 68 216 185 196644 08:11:11;
#P window setfont “Sans Serif” 9.;
#P newex 68 195 141 196617 sprintf set %.2d:%.2d:%.2d;
#P toggle 53 110 15 0;
#P newex 53 131 60 196617 metro 500;
#P message 53 153 26 196617 time;
#P newex 53 173 40 196617 date;
#P connect 2 0 1 0;
#P connect 3 0 2 0;
#P connect 4 0 5 0;
#P connect 0 1 4 0;
#P connect 1 0 0 0;
#P window clipboard copycount 6;

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09

#76065

You must be logged in to reply to this topic.