Greetings all I would like to export data to a text file every time the metro is banged with the format YYYYMMDDhhmmss, float, float, float
I can create the data but the questions I have 1) I keep getting a write failed. 2) how can I get the commas between the values? 3) is there a way to do leading zeros? Here's a link to my pd http://dl.dropbox.com/u/6576402/questions/pd/export_text.pd Ps: I'm using Linux ubuntu 10.04 64bit thanks
#N canvas 644 98 688 570 10; #X obj 102 162 date; #X obj 167 158 time; #X obj 168 81 metro 1000; #X obj 160 27 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 183 134 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X floatatom 22 209 5 0 0 0 - - -; #X floatatom 347 214 5 0 0 0 - - -; #X obj 345 101 i; #X msg 408 57 0; #X obj 403 99 + 2; #X obj 401 6 loadbang; #X floatatom 65 208 5 0 0 0 - - -; #X floatatom 111 210 5 0 0 0 - - -; #X floatatom 169 212 5 0 0 0 - - -; #X floatatom 218 212 5 0 0 0 - - -; #X floatatom 261 212 5 0 0 0 - - -; #X obj 225 469 textfile; #X obj 167 386 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 44 290 pack f f f; #X obj 207 290 pack f f f; #X obj 56 248 bondo 3; #X msg 221 405 print; #X msg 220 434 write /tmp/testfile.txt; #X obj 398 168 + 3; #X obj 450 169 - 1; #X floatatom 399 214 5 0 0 0 - - -; #X floatatom 458 214 5 0 0 0 - - -; #X obj 214 250 bondo 3; #X obj 391 247 bondo 3; #X obj 227 328 bondo 3; #X obj 383 284 pack f f f; #X obj 218 367 pack f f f; #X obj 222 505 print list; #X text 114 249 YYYYMMDDhhmmss; #X connect 0 0 5 0; #X connect 0 1 11 0; #X connect 0 2 12 0; #X connect 1 0 13 0; #X connect 1 1 14 0; #X connect 1 2 15 0; #X connect 2 0 4 0; #X connect 2 0 0 0; #X connect 2 0 7 0; #X connect 2 0 1 0; #X connect 3 0 2 0; #X connect 5 0 20 0; #X connect 6 0 28 0; #X connect 7 0 6 0; #X connect 7 0 9 0; #X connect 7 0 23 0; #X connect 7 0 24 0; #X connect 8 0 7 1; #X connect 9 0 7 1; #X connect 10 0 8 0; #X connect 11 0 20 1; #X connect 12 0 20 2; #X connect 13 0 27 0; #X connect 14 0 27 1; #X connect 15 0 27 2; #X connect 16 0 32 0; #X connect 18 0 29 0; #X connect 19 0 29 1; #X connect 20 0 18 0; #X connect 20 1 18 1; #X connect 20 2 18 2; #X connect 21 0 17 0; #X connect 21 0 22 0; #X connect 22 0 16 0; #X connect 23 0 25 0; #X connect 24 0 26 0; #X connect 25 0 28 1; #X connect 26 0 28 2; #X connect 27 0 19 0; #X connect 27 1 19 1; #X connect 27 2 19 2; #X connect 28 0 30 0; #X connect 28 1 30 1; #X connect 28 2 30 2; #X connect 29 0 31 0; #X connect 29 1 31 1; #X connect 29 2 31 2; #X connect 30 0 29 2; #X connect 31 0 21 0;
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
