Sorry the patch is here.
stephane wrote:
Hi list,
Thanks to Cyrille for his answer. I have two problems, the first : I'm not able (because of my bad math level) to make a simple patch for have the output time in ms between to bang with the [time] object from zexy library. Is some one can help me ?
The second : I don't understand were come the near 1.5 % error between [realtime] & [metro] objects. It seam to be different from a computer to another. Maybe a latency problem... mmh...? I do this simple patch for test several [realtime] objects, and none of the 10 objects give the same result. Do you now why ? Thanks .sr
#N canvas 6 9 167 305 12; #N canvas 68 77 701 531 master_synchro 0; #X msg 110 19 bang; #X msg 167 19 stop; #X floatatom 234 19 0 0 0 0 - - -; #N canvas 532 467 502 352 master_metro 0; #X obj 22 100 metro; #X obj 22 211 line; #X obj 22 136 f; #X obj 22 19 inlet; #X obj 173 18 inlet; #X obj 22 256 outlet; #X msg 22 169 0 0 , 1 $1; #X obj 98 19 inlet; #X connect 0 0 2 0; #X connect 1 0 5 0; #X connect 2 0 6 0; #X connect 3 0 0 0; #X connect 4 0 0 1; #X connect 4 0 2 1; #X connect 6 0 1 0; #X connect 7 0 0 0; #X restore 110 110 pd master_metro; #X obj 110 162 t f f f f f f f f f f f f f f f f; #X obj 20 228 bang_loop loop1; #X obj 53 258 bang_loop loop2; #X obj 84 287 bang_loop loop3; #X obj 116 316 bang_loop loop4; #X obj 147 344 bang_loop loop5; #X obj 179 374 bang_loop loop6; #X obj 211 402 bang_loop loop7; #X obj 243 431 bang_loop loop8; #X obj 248 230 bang_loop loop9; #X obj 280 258 bang_loop loop10; #X obj 311 287 bang_loop loop11; #X obj 343 316 bang_loop loop12; #X obj 374 344 bang_loop loop13; #X obj 406 374 bang_loop loop14; #X obj 438 402 bang_loop loop15; #X obj 470 431 bang_loop loop16; #N canvas 486 269 596 414 looplenght 1; #X msg 162 124 bang; #X msg 162 0 stop; #X obj 162 97 sel 1; #X obj 162 67 i; #X obj 199 67 + 1; #X msg 234 67 0; #X obj 28 245 realtime; #X floatatom 28 275 0 0 0 0 - - -; #X obj 162 151 s stop; #X obj 104 0 r stop; #X obj 41 30 s bang; #X msg 41 0 bang; #X obj 87 216 r stop; #X obj 28 215 r bang; #X obj 104 57 r bang; #X obj 104 30 t b b; #X obj 147 246 realtime; #X floatatom 147 276 0 0 0 0 - - -; #X obj 206 217 r stop; #X obj 147 216 r bang; #X obj 267 247 realtime; #X floatatom 267 277 0 0 0 0 - - -; #X obj 326 218 r stop; #X obj 267 217 r bang; #X obj 385 248 realtime; #X floatatom 385 278 0 0 0 0 - - -; #X obj 444 219 r stop; #X obj 385 218 r bang; #X obj 507 248 realtime; #X floatatom 507 278 0 0 0 0 - - -; #X obj 566 219 r stop; #X obj 507 218 r bang; #X obj 27 335 realtime; #X floatatom 27 365 0 0 0 0 - - -; #X obj 86 306 r stop; #X obj 27 305 r bang; #X obj 146 336 realtime; #X floatatom 146 366 0 0 0 0 - - -; #X obj 205 307 r stop; #X obj 146 306 r bang; #X obj 266 337 realtime; #X floatatom 266 367 0 0 0 0 - - -; #X obj 325 308 r stop; #X obj 266 307 r bang; #X obj 384 338 realtime; #X floatatom 384 368 0 0 0 0 - - -; #X obj 443 309 r stop; #X obj 384 308 r bang; #X obj 506 338 realtime; #X floatatom 506 368 0 0 0 0 - - -; #X obj 565 309 r stop; #X obj 506 308 r bang; #X obj 162 36 metro; #X floatatom 251 14 5 0 0 0 - - -; #X obj 351 2 loadbang; #X msg 351 28 2000; #X connect 0 0 8 0; #X connect 1 0 52 0; #X connect 2 0 0 0; #X connect 3 0 4 0; #X connect 3 0 2 0; #X connect 4 0 3 1; #X connect 5 0 3 1; #X connect 6 0 7 0; #X connect 9 0 15 0; #X connect 11 0 10 0; #X connect 12 0 6 1; #X connect 13 0 6 0; #X connect 14 0 52 0; #X connect 15 0 5 0; #X connect 15 1 1 0; #X connect 16 0 17 0; #X connect 18 0 16 1; #X connect 19 0 16 0; #X connect 20 0 21 0; #X connect 22 0 20 1; #X connect 23 0 20 0; #X connect 24 0 25 0; #X connect 26 0 24 1; #X connect 27 0 24 0; #X connect 28 0 29 0; #X connect 30 0 28 1; #X connect 31 0 28 0; #X connect 32 0 33 0; #X connect 34 0 32 1; #X connect 35 0 32 0; #X connect 36 0 37 0; #X connect 38 0 36 1; #X connect 39 0 36 0; #X connect 40 0 41 0; #X connect 42 0 40 1; #X connect 43 0 40 0; #X connect 44 0 45 0; #X connect 46 0 44 1; #X connect 47 0 44 0; #X connect 48 0 49 0; #X connect 50 0 48 1; #X connect 51 0 48 0; #X connect 52 0 3 0; #X connect 53 0 52 1; #X connect 54 0 55 0; #X connect 55 0 53 0; #X restore 289 18 pd looplenght; #X connect 0 0 3 0; #X connect 1 0 3 1; #X connect 2 0 3 2; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 4 1 6 0; #X connect 4 2 7 0; #X connect 4 3 8 0; #X connect 4 4 9 0; #X connect 4 5 10 0; #X connect 4 6 11 0; #X connect 4 7 12 0; #X connect 4 8 13 0; #X connect 4 9 14 0; #X connect 4 10 15 0; #X connect 4 11 16 0; #X connect 4 12 17 0; #X connect 4 13 18 0; #X connect 4 14 19 0; #X connect 4 15 20 0; #X restore -2 0 pd master_synchro; #N canvas 68 163 334 221 argument_list 0; #X obj 69 121 qlist; #X msg 120 90 read default.txt; #X obj 69 13 loadbang; #X obj 69 49 t b b b; #X msg 19 13 bang; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 3 0 0 0; #X connect 3 1 0 0; #X connect 3 2 1 0; #X connect 4 0 3 0; #X restore -3 68 pd argument_list; #N canvas 752 109 360 205 record 0; #N canvas 0 0 649 397 record_loop 0; #X obj 72 69 record_loop loop1; #X obj 72 97 record_loop loop2; #X obj 72 125 record_loop loop3; #X obj 72 155 record_loop loop4; #X obj 72 185 record_loop loop5; #X obj 72 214 record_loop loop6; #X obj 72 243 record_loop loop7; #X obj 72 272 record_loop loop8; #X obj 300 71 record_loop loop9; #X obj 300 99 record_loop loop10; #X obj 300 127 record_loop loop11; #X obj 299 157 record_loop loop12; #X obj 300 187 record_loop loop13; #X obj 300 216 record_loop loop14; #X obj 301 245 record_loop loop15; #X obj 300 274 record_loop loop16; #X restore 37 25 pd record_loop; #N canvas 103 364 487 312 resize_table 0; #X obj 27 32 maxloopsize loop1; #X obj 27 63 maxloopsize loop2; #X obj 27 95 maxloopsize loop3; #X obj 26 125 maxloopsize loop4; #X obj 26 154 maxloopsize loop5; #X obj 27 184 maxloopsize loop6; #X obj 27 213 maxloopsize loop7; #X obj 27 242 maxloopsize loop8; #X obj 237 33 maxloopsize loop9; #X obj 237 65 maxloopsize loop10; #X obj 237 96 maxloopsize loop11; #X obj 237 125 maxloopsize loop12; #X obj 237 155 maxloopsize loop13; #X obj 237 185 maxloopsize loop14; #X obj 237 215 maxloopsize loop15; #X obj 236 244 maxloopsize loop16; #X restore 37 68 pd resize_table; #X restore -2 32 pd record; #N canvas 123 7 249 156 play 1; #N canvas 0 0 462 312 looplay 0; #X obj 28 32 looplay loop1 1 2; #X obj 234 243 looplay loop16 31 32; #X obj 28 62 looplay loop2 3 4; #X obj 28 93 looplay loop3 5 6; #X obj 27 123 looplay loop4 7 8; #X obj 28 151 looplay loop5 9 10; #X obj 28 181 looplay loop6 11 12; #X obj 28 212 looplay loop7 13 14; #X obj 28 242 looplay loop8 15 16; #X obj 234 33 looplay loop9 17 18; #X obj 234 63 looplay loop10 19 20; #X obj 234 94 looplay loop11 21 22; #X obj 234 124 looplay loop12 23 24; #X obj 234 152 looplay loop13 25 26; #X obj 234 182 looplay loop14 27 28; #X obj 234 213 looplay loop15 29 30; #X restore 12 12 pd looplay; #N canvas 229 7 470 320 loophase 1; #X obj 158 143 loophase loop13; #X obj 24 31 loophase loop1; #X obj 24 59 loophase loop2; #X obj 24 87 loophase loop3; #X obj 24 115 loophase loop4; #X obj 24 143 loophase loop5; #X obj 25 171 loophase loop6; #X obj 24 199 loophase loop7; #X obj 24 227 loophase loop8; #X obj 158 31 loophase loop9; #X obj 158 59 loophase loop10; #X obj 158 87 loophase loop11; #X obj 158 115 loophase loop12; #X obj 158 171 loophase loop14; #X obj 158 199 loophase loop15; #X obj 158 227 loophase loop16; #X restore 13 47 pd loophase; #X restore -4 103 pd play; #N canvas 430 0 679 812 output 0; #X obj 36 5 channel 1 1 2; #X obj 179 4 channel 2 3 4; #X obj 325 4 channel 3 5 6; #X obj 476 4 channel 4 7 8; #X obj 36 200 channel 5 9 10; #X obj 176 199 channel 6 11 12; #X obj 325 199 channel 7 13 14; #X obj 477 199 channel 8 15 16; #X obj 32 397 channel 9 17 18; #X obj 178 396 channel 10 19 20; #X obj 328 396 channel 11 21 22; #X obj 479 396 channel 12 23 24; #X obj 33 601 channel 13 25 26; #X obj 180 600 channel 14 27 28; #X obj 330 600 channel 15 29 30; #X obj 481 600 channel 16 31 32; #X restore -4 138 pd output; #N canvas 0 0 478 328 control 0; #X msg 37 28 ; playbang bang; #X restore -4 170 pd control; #N canvas 6 23 897 746 route_signal 0; #N canvas 31 96 716 606 route_loops 0; #X obj 16 25 loop_route 1 2 1; #X obj 16 90 loop_route 3 4 2; #X obj 16 155 loop_route 5 6 3; #X obj 16 220 loop_route 7 8 4; #X obj 16 283 loop_route 9 10 5; #X obj 16 348 loop_route 11 12 6; #X obj 16 413 loop_route 13 14 7; #X obj 16 478 loop_route 15 16 8; #X obj 343 25 loop_route 17 18 9; #X obj 343 90 loop_route 19 20 10; #X obj 343 155 loop_route 21 22 11; #X obj 343 220 loop_route 23 24 12; #X obj 343 283 loop_route 25 26 13; #X obj 343 348 loop_route 27 28 14; #X obj 343 413 loop_route 29 30 15; #X obj 344 478 loop_route 31 32 16; #X coords 0 0 1 1 800 600 1; #X restore 25 82 pd route_loops; #N canvas 611 9 522 517 route 0; #X obj 121 57 from-loop 18; #X obj 16 112 from-loop 4; #X obj 16 139 from-loop 5; #X obj 17 168 from-loop 6; #X obj 17 195 from-loop 7; #X obj 17 223 from-loop 8; #X obj 17 250 from-loop 9; #X obj 17 276 from-loop 10; #X obj 17 303 from-loop 11; #X obj 17 331 from-loop 12; #X obj 17 358 from-loop 13; #X obj 18 387 from-loop 14; #X obj 18 414 from-loop 15; #X obj 18 442 from-loop 16; #X obj 121 30 from-loop 17; #X obj 121 84 from-loop 19; #X obj 121 112 from-loop 20; #X obj 121 139 from-loop 21; #X obj 122 168 from-loop 22; #X obj 122 195 from-loop 23; #X obj 122 223 from-loop 24; #X obj 122 250 from-loop 25; #X obj 122 276 from-loop 26; #X obj 122 303 from-loop 27; #X obj 122 331 from-loop 28; #X obj 122 356 from-loop 29; #X obj 123 387 from-loop 30; #X obj 123 414 from-loop 31; #X obj 123 442 from-loop 32; #X obj 15 30 from-loop 1; #X obj 15 57 from-loop 2; #X obj 16 86 from-loop 3; #X obj 361 24 to-channel 2; #X obj 242 24 to-channel 1; #X obj 242 52 to-channel 3; #X obj 242 80 to-channel 5; #X obj 242 108 to-channel 7; #X obj 242 136 to-channel 9; #X obj 242 164 to-channel 11; #X obj 242 192 to-channel 13; #X obj 242 220 to-channel 15; #X obj 242 248 to-channel 17; #X obj 242 276 to-channel 19; #X obj 242 304 to-channel 21; #X obj 242 332 to-channel 23; #X obj 242 360 to-channel 25; #X obj 242 388 to-channel 27; #X obj 242 416 to-channel 29; #X obj 242 444 to-channel 31; #X obj 361 52 to-channel 4; #X obj 361 80 to-channel 6; #X obj 361 108 to-channel 8; #X obj 361 136 to-channel 10; #X obj 361 164 to-channel 12; #X obj 361 192 to-channel 14; #X obj 361 220 to-channel 16; #X obj 361 248 to-channel 18; #X obj 361 276 to-channel 20; #X obj 361 304 to-channel 22; #X obj 361 332 to-channel 24; #X obj 361 360 to-channel 26; #X obj 361 388 to-channel 28; #X obj 361 416 to-channel 30; #X obj 361 444 to-channel 32; #X restore 20 41 pd route; #X restore -4 202 pd route_signal;