Forums > MaxMSP

clock with sfplay~


o s
August 29, 2007 | 11:45 am

I am using a sfplay~ object together with the clockpatcher which is located in the help under "new features".
Now I want that the clock starting (with the file) at -10 seconds instead of at 0.
It is surely very simple – I need some coatching in math…
thanks ole

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 259 208 68 196617 expr $f1-$i2;
#P newex 352 231 45 196617 * 1000.;
#P newex 158 162 68 196617 expr $f1-$i2;
#P newex 243 186 33 196617 * 60.;
#P number 120 25 36 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 75 25 15 0;
#P newex 46 114 68 196617 expr $f1-$i2;
#P window setfont "Sans Serif" 36.;
#P number 352 261 101 36 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 458 261 63 196644 ms;
#P number 243 261 62 36 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 309 261 38 196644 s;
#P number 131 261 62 36 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P newex 131 139 33 196617 * 60.;
#P window setfont "Sans Serif" 36.;
#P comment 195 261 38 196644 m;
#P number 30 261 62 36 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P newex 30 91 62 196617 / 3600000.;
#P newex 75 45 55 196617 metro 100;
#P newex 30 71 53 196617 snapshot~;
#P inlet 30 27 15 0;
#P window setfont "Sans Serif" 36.;
#P comment 94 261 28 196644 h;
#P window setfont "Sans Serif" 12.;
#P comment 173 45 230 196620 < = Turn on metronome to see clock;
#P connect 19 0 13 0;
#P fasten 20 0 19 0 264 228 357 228;
#P fasten 17 0 20 1 248 205 322 205;
#P fasten 17 0 20 0 248 206 264 206;
#P connect 17 0 11 0;
#P fasten 18 0 17 0 163 183 248 183;
#P fasten 8 0 18 1 136 158 221 158;
#P fasten 8 0 18 0 136 158 163 158;
#P connect 8 0 9 0;
#P fasten 14 0 8 0 51 135 136 135;
#P connect 16 0 4 1;
#P connect 5 0 6 0;
#P fasten 5 0 14 0 35 111 51 111;
#P fasten 5 0 14 1 35 110 109 110;
#P connect 15 0 4 0;
#P connect 3 0 5 0;
#P connect 2 0 3 0;
#P fasten 4 0 3 0 80 64 35 64;
#P window clipboard copycount 21;


Viewing 1 post (of 1 total)