Commit bb8e3b18 authored by Roman Haefeli's avatar Roman Haefeli

support error, warning, info messages (renamed display from error to messages)

parent 1732308a
#N canvas 0 53 967 386 10;
#N canvas 0 53 972 389 10;
#X declare -stdpath iemnet -stdpath osc -stdpath slip -path include
;
#X obj 39 38 cnv 24 311 24 empty empty PEERNODES 5 13 0 16 -228856
......@@ -79,7 +79,7 @@
#X connect 38 0 37 1;
#X restore 8 41 pd communication;
#X obj 189 149 nbx 5 14 -1e+37 1e+37 0 0 \$0.bla \$0.id empty 0 -8
0 10 -262144 -1 -1 0 256;
0 10 -262144 -1 -1 5 256;
#N canvas 358 93 314 294 tpf.initialization 0;
#X obj 17 10 r \$0.id;
#X obj 17 51 b;
......@@ -1029,122 +1029,6 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X obj 9 263 tpf-client-chatline \$0.chat \$0.scb.chat.s 2;
#X obj 9 286 tpf-client-chatline \$0.chat \$0.scb.chat.s 1;
#X restore 8 182 pd chat;
#N canvas 45 812 1109 503 errors.code 0;
#X obj 392 28 r \$0.error;
#X obj 316 125 print TPF_ERROR;
#X obj 17 81 r \$0.display.errors;
#X msg 17 102 vis 1;
#X obj 17 123 s pd-errors;
#X obj 216 28 text define \$0.msgs;
#X obj 690 142 loadbang;
#X obj 596 141 list;
#X msg 690 162 0;
#X obj 615 235 - 30;
#X obj 615 256 max 0;
#X obj 615 278 until;
#X obj 615 299 f 30;
#X obj 785 26 loadbang;
#X msg 596 369 totalsize \$1;
#X obj 596 163 t b b a;
#X msg 785 47 80;
#X obj 785 89 s \$0.msgs.buffer;
#X obj 693 275 r \$0.msgs.buffer;
#X obj 635 190 text insert \$0.msgs;
#X obj 615 214 text size \$0.msgs;
#X obj 615 322 text delete \$0.msgs;
#X obj 596 345 text size \$0.msgs;
#X obj 596 394 s \$0.scb.msgs.r;
#N canvas 789 242 443 595 list2symbol 0;
#X obj 168 149 until;
#X obj 168 231 list store;
#X obj 168 174 f;
#X obj 206 175 + 1;
#X msg 222 147 0, f 2;
#X obj 168 122 t b b a;
#X msg 168 203 get \$1 1;
#X obj 166 298 list fromsymbol;
#X obj 167 253 list append;
#X msg 166 276 symbol \$1\$2;
#X obj 297 168 loadbang;
#X msg 297 199 symbol;
#X obj 166 339 list prepend append;
#X obj 166 360 list trim;
#X obj 72 394 list store;
#X obj 166 319 list append 32;
#X obj 68 64 t b b a;
#X obj 72 415 list tosymbol;
#X obj 68 43 list;
#X obj 72 436 outlet;
#X obj 68 21 inlet;
#X connect 0 0 2 0;
#X connect 1 0 8 0;
#X connect 1 1 0 1;
#X connect 2 0 3 0;
#X connect 2 0 6 0;
#X connect 3 0 2 1;
#X connect 4 0 2 1;
#X connect 5 0 0 0;
#X connect 5 1 4 0;
#X connect 5 2 1 1;
#X connect 6 0 1 0;
#X connect 7 0 15 0;
#X connect 8 0 9 0;
#X connect 9 0 7 0;
#X connect 10 0 11 0;
#X connect 11 0 8 1;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 17 0;
#X connect 15 0 12 0;
#X connect 16 0 14 1;
#X connect 16 1 14 0;
#X connect 16 2 5 0;
#X connect 17 0 19 0;
#X connect 18 0 16 0;
#X connect 20 0 18 0;
#X restore 519 55 pd list2symbol;
#X msg 519 76 list ERROR \$1 -1;
#X connect 0 0 1 0;
#X connect 0 0 24 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 6 0 8 0;
#X connect 7 0 15 0;
#X connect 8 0 19 1;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 21 0;
#X connect 13 0 16 0;
#X connect 14 0 23 0;
#X connect 15 0 22 0;
#X connect 15 1 20 0;
#X connect 15 2 19 0;
#X connect 16 0 17 0;
#X connect 18 0 12 1;
#X connect 18 0 9 1;
#X connect 20 0 9 0;
#X connect 22 0 14 0;
#X connect 24 0 25 0;
#X connect 25 0 7 0;
#X restore 8 202 pd errors.code;
#N canvas 978 487 783 348 errors 0;
#X obj 743 10 scrollbar_24x321 \$0.scb.msgs.r \$0.scb.msgs.s 14;
#X obj 9 10 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 13;
#X obj 9 309 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 0;
#X obj 9 33 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 12;
#X obj 9 56 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 11;
#X obj 9 79 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 10;
#X obj 9 102 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 9;
#X obj 9 125 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 8;
#X obj 9 148 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 7;
#X obj 9 171 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 6;
#X obj 9 194 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 5;
#X obj 9 217 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 4;
#X obj 9 240 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 3;
#X obj 9 263 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 2;
#X obj 9 286 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 1;
#X restore 8 222 pd errors;
#X obj 554 175 r \$0.send;
#X obj 554 216 print SEND;
#X obj 633 175 r \$0.receive;
......@@ -1382,6 +1266,166 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
0 -8 0 20 -1 -262144 -1 1 256;
#X obj 210 43 cnv 14 14 28 empty empty s 3 16 0 20 -1 -262144 0;
#X restore 8 262 pd latency;
#N canvas 41 571 1034 543 messages.code 0;
#X obj 420 74 print TPF_ERROR;
#X msg 17 102 vis 1;
#X obj 216 28 text define \$0.msgs;
#X obj 612 264 loadbang;
#X obj 518 263 list;
#X msg 612 284 0;
#X obj 537 357 - 30;
#X obj 537 378 max 0;
#X obj 537 400 until;
#X obj 537 421 f 30;
#X obj 809 20 loadbang;
#X msg 518 491 totalsize \$1;
#X obj 518 285 t b b a;
#X obj 809 83 s \$0.msgs.buffer;
#X obj 615 397 r \$0.msgs.buffer;
#X obj 557 312 text insert \$0.msgs;
#X obj 537 336 text size \$0.msgs;
#X obj 537 444 text delete \$0.msgs;
#X obj 518 467 text size \$0.msgs;
#X obj 518 516 s \$0.scb.msgs.r;
#X obj 17 81 r \$0.display.messages;
#X obj 393 28 r \$0.error;
#X obj 518 30 r \$0.warning;
#X obj 660 27 r \$0.info;
#X obj 687 82 print TPF_INFO;
#X obj 393 49 t a a;
#X obj 518 56 t a a;
#X obj 545 81 print TPF_WARN;
#X obj 660 48 t a a;
#X msg 809 41 300;
#X obj 393 102 list prepend ERROR;
#X obj 518 105 list prepend WARNING;
#X obj 660 106 list prepend INFO;
#X obj 518 159 list split 1;
#N canvas 789 242 443 595 list2symbol 0;
#X obj 168 149 until;
#X obj 168 231 list store;
#X obj 168 174 f;
#X obj 206 175 + 1;
#X msg 222 147 0, f 2;
#X obj 168 122 t b b a;
#X msg 168 203 get \$1 1;
#X obj 166 298 list fromsymbol;
#X obj 167 253 list append;
#X msg 166 276 symbol \$1\$2;
#X obj 297 168 loadbang;
#X msg 297 199 symbol;
#X obj 166 339 list prepend append;
#X obj 166 360 list trim;
#X obj 72 394 list store;
#X obj 166 319 list append 32;
#X obj 68 64 t b b a;
#X obj 72 415 list tosymbol;
#X obj 68 43 list;
#X obj 72 436 outlet;
#X obj 68 21 inlet;
#X connect 0 0 2 0;
#X connect 1 0 8 0;
#X connect 1 1 0 1;
#X connect 2 0 3 0;
#X connect 2 0 6 0;
#X connect 3 0 2 1;
#X connect 4 0 2 1;
#X connect 5 0 0 0;
#X connect 5 1 4 0;
#X connect 5 2 1 1;
#X connect 6 0 1 0;
#X connect 7 0 15 0;
#X connect 8 0 9 0;
#X connect 9 0 7 0;
#X connect 10 0 11 0;
#X connect 11 0 8 1;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 17 0;
#X connect 15 0 12 0;
#X connect 16 0 14 1;
#X connect 16 1 14 0;
#X connect 16 2 5 0;
#X connect 17 0 19 0;
#X connect 18 0 16 0;
#X connect 20 0 18 0;
#X restore 552 183 pd list2symbol;
#X obj 518 213 list append;
#X obj 518 234 list append -1;
#X obj 17 123 s pd-message;
#X obj 393 123 t a b;
#X obj 518 126 t a b;
#X obj 660 127 t a b;
#X msg 675 195 -1;
#X msg 716 194 -2;
#X msg 743 193 -4;
#X msg 318 242 color 255 128 128;
#X obj 318 263 s \$0.display.messages.r;
#X connect 1 0 37 0;
#X connect 3 0 5 0;
#X connect 4 0 12 0;
#X connect 5 0 15 1;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 17 0;
#X connect 10 0 29 0;
#X connect 11 0 19 0;
#X connect 12 0 18 0;
#X connect 12 1 16 0;
#X connect 12 2 15 0;
#X connect 14 0 9 1;
#X connect 14 0 6 1;
#X connect 16 0 6 0;
#X connect 18 0 11 0;
#X connect 20 0 1 0;
#X connect 21 0 25 0;
#X connect 22 0 26 0;
#X connect 23 0 28 0;
#X connect 25 0 30 0;
#X connect 25 1 0 0;
#X connect 26 0 31 0;
#X connect 26 1 27 0;
#X connect 28 0 32 0;
#X connect 28 1 24 0;
#X connect 29 0 13 0;
#X connect 30 0 38 0;
#X connect 31 0 39 0;
#X connect 32 0 40 0;
#X connect 33 0 35 0;
#X connect 33 1 34 0;
#X connect 34 0 35 1;
#X connect 35 0 36 0;
#X connect 36 0 4 0;
#X connect 38 0 33 0;
#X connect 38 1 41 0;
#X connect 38 1 44 0;
#X connect 39 0 33 0;
#X connect 39 1 42 0;
#X connect 40 0 33 0;
#X connect 40 1 43 0;
#X connect 41 0 36 1;
#X connect 42 0 36 1;
#X connect 43 0 36 1;
#X connect 44 0 45 0;
#X restore 8 202 pd messages.code;
#N canvas 972 502 783 348 messages 0;
#X obj 743 10 scrollbar_24x321 \$0.scb.msgs.r \$0.scb.msgs.s 14;
#X obj 9 10 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 13;
#X obj 9 309 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 0;
#X obj 9 33 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 12;
#X obj 9 56 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 11;
#X obj 9 79 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 10;
#X obj 9 102 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 9;
#X obj 9 125 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 8;
#X obj 9 148 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 7;
#X obj 9 171 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 6;
#X obj 9 194 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 5;
#X obj 9 217 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 4;
#X obj 9 240 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 3;
#X obj 9 263 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 2;
#X obj 9 286 tpf-client-chatline \$0.msgs \$0.scb.msgs.s 1;
#X restore 8 222 pd messages;
#X connect 12 0 14 0;
#X connect 14 0 13 0;
#X connect 15 0 17 0;
......@@ -1392,13 +1436,13 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X connect 20 0 21 0;
#X connect 21 0 23 0;
#X connect 22 0 21 0;
#X connect 29 0 33 0;
#X connect 31 0 34 0;
#X connect 33 0 30 0;
#X connect 34 0 32 0;
#X connect 35 0 34 1;
#X connect 35 0 33 1;
#X connect 36 0 37 0;
#X connect 27 0 31 0;
#X connect 29 0 32 0;
#X connect 31 0 28 0;
#X connect 32 0 30 0;
#X connect 33 0 32 1;
#X connect 33 0 31 1;
#X connect 34 0 35 0;
#X restore 875 346 pd code;
#X obj 4 65 tpf-client-link \$0 0;
#X obj 353 38 cnv 24 32 24 empty empty RX 5 13 0 16 -228856 -1 0;
......@@ -1419,16 +1463,16 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X obj 353 3 cnv 15 44 16 empty empty host= 4 8 0 13 -1 -262144 0;
#X obj 398 3 symbolatom_203x17 \$0 \$0.host \$0.host.r 500 15;
#X obj 605 3 nbx 7 16 6 34 0 0 \$0.channels.nb \$0.channels.nb.r empty
0 8 0 10 -262144 -1 -1 8 256;
#X obj 602 3 cnv 15 75 16 empty \$0.channels.label ch=2 4 8 0 13 -1
-262144 0;
0 8 0 10 -262144 -1 -1 34 256;
#X obj 602 3 cnv 15 75 16 empty \$0.channels.label ch=8 4 8 0 13 -1
-195568 0;
#X obj 610 19 nbx 6 16 10 398 0 0 \$0.queue.nb \$0.queue.nb.r empty
0 8 0 10 -262144 -1 -1 16 256;
#X obj 610 20 cnv 15 67 15 empty \$0.queue.label q=4 4 7 0 13 -1 -262144
0 8 0 10 -262144 -1 -1 32 256;
#X obj 610 20 cnv 15 67 15 empty \$0.queue.label q=8 4 7 0 13 -1 -195568
0;
#X obj 540 19 nbx 6 16 2 26 0 0 \$0.bs.nb \$0.bs.nb.r empty 0 8 0 10
-262144 -1 -1 8 256;
#X obj 537 20 cnv 15 72 15 empty \$0.bs.label bs=128 4 7 0 13 -1 -262144
#X obj 537 20 cnv 15 72 15 empty \$0.bs.label bs=128 4 7 0 13 -1 -195568
0;
#X obj 680 38 cnv 24 32 24 empty empty 1 10 13 0 16 -228856 -1 0;
#X obj 715 38 cnv 24 32 24 empty empty 2 10 13 0 16 -228856 -1 0;
......@@ -1460,6 +1504,6 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X obj 925 345 tpf-client-testsignal-outchannel \$0 8 0;
#X obj 730 345 cnv 15 192 32 empty empty empty 20 12 0 14 -262144 -66577
0;
#X obj 266 345 tpf-client-button Errors \$0.display.errors \$0.display.errors.r
;
#X obj 135 345 tpf-client-button Latency \$0.display.latency;
#X obj 266 345 tpf-client-button Messages \$0.display.messages \$0.display.messages.r
;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment