blob: af4dd691dd0fb5dcf2602bc8f3ae7a845f7e4a01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#N canvas 0 31 628 559 10;
#X obj 90 54 strcmp;
#X text 147 54 -- compare 2 lists as if they were strings;
#X obj 71 398 strcmp this is list # 3;
#X floatatom 71 423 0 0 0 0 - - -;
#X obj 96 423 print strcmp;
#X msg 71 184 list this is list # 3;
#X msg 71 221 list this is list # 4;
#X msg 71 239 1 2 3 4 5;
#X msg 71 256 list yet another list;
#X floatatom 83 286 0 0 0 0 - - -;
#X msg 204 313 list yet another list;
#X msg 222 366 list \$1;
#X floatatom 222 349 0 0 0 0 - - -;
#X text 278 357 to compare symbols/floats you have to make sure that
they go to the 2nd inlet as lists;
#X text 98 442 the output follows the "strcmp" of the C programming
language;
#X text 426 24 part of zexy;
#X text 68 525 probably not very efficient!!;
#N canvas 460 154 494 344 META 0;
#X text 12 145 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2;
#X text 12 125 AUTHOR IOhannes m zmoelnig;
#X text 12 5 KEYWORDS control list_op;
#X text 12 45 DESCRIPTION compare two lists as if they were strings
;
#X text 12 65 INLET_0 list float;
#X text 12 85 INLET_1 list;
#X text 12 105 OUTLET_0 float;
#X restore 573 531 pd META;
#X connect 2 0 4 0;
#X connect 2 0 3 0;
#X connect 5 0 2 0;
#X connect 6 0 2 0;
#X connect 7 0 2 0;
#X connect 8 0 2 0;
#X connect 9 0 2 0;
#X connect 10 0 2 1;
#X connect 11 0 2 1;
#X connect 12 0 11 0;
|