File: list-filter-help.pd

package info (click to toggle)
pd-list-abs 0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 756 kB
  • sloc: makefile: 289
file content (81 lines) | stat: -rw-r--r-- 2,390 bytes parent folder | download | duplicates (3)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#N canvas 0 26 583 620 10;
#X obj 226 453 mod 2;
#X obj 226 483 != 0;
#X obj 274 454 mod 3;
#X obj 274 483 != 0;
#X obj 226 517 &&;
#X obj 226 426 t a a;
#N canvas 0 0 450 300 show 0;
#X obj 129 107 list prepend set;
#X obj 129 129 list trim;
#X obj 129 79 inlet;
#X obj 129 154 outlet;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 2 0 0 0;
#X restore 70 548 pd show;
#X msg 70 574;
#X text 62 27 [list-filter];
#X text 66 58 [list-filter] returns a sequence consisting of those
items from the sequence for which the user-defined operation cross-connected
to the rightmost in- and outlet is true.;
#X text 66 112 Everything that is not 0 is considered a TRUE value.
Internally [select 0] is used.;
#X msg 70 213 0 1 2 3 4 5;
#N canvas 0 0 450 300 show 0;
#X obj 129 107 list prepend set;
#X obj 129 129 list trim;
#X obj 129 79 inlet;
#X obj 129 154 outlet;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 2 0 0 0;
#X restore 70 306 pd show;
#X msg 70 332;
#X obj 167 266 >= 3;
#X text 67 163 Examples:;
#X text 217 266 remove values smaller than 3 from list;
#X obj 160 212 t b a;
#X floatatom 160 193 5 0 0 0 - - -;
#X text 200 212 "bang" to [list-filter] will resend the last list;
#X obj 70 265 list-filter;
#X text 70 362 Calculate some small primes:;
#X msg 70 387 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24;
#X obj 70 471 list-filter;
#X msg 82 526 bang;
#X msg 79 285 bang;
#N canvas 491 26 494 396 META 0;
#X text 12 25 LICENSE SIBSD;
#X text 12 155 AUTHOR Frank Barknecht;
#X text 12 175 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
added by Jonathan Wilkes for Pd version 0.42.;
#X text 12 115 OUTLET_0 list;
#X text 12 5 KEYWORDS control list_op;
#X text 12 45 DESCRIPTION return a list of items for which the operation
cross-connected to the rightmost in- and outlet is true.;
#X text 12 75 INLET_0 list;
#X text 12 95 INLET_1 float;
#X text 12 135 OUTLET_1 float;
#X restore 508 580 pd META;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 2 0 3 0;
#X connect 3 0 4 1;
#X connect 4 0 23 1;
#X connect 5 0 0 0;
#X connect 5 1 2 0;
#X connect 6 0 7 0;
#X connect 11 0 20 0;
#X connect 12 0 13 0;
#X connect 14 0 20 1;
#X connect 17 0 20 0;
#X connect 17 1 14 1;
#X connect 18 0 17 0;
#X connect 20 0 12 0;
#X connect 20 1 14 0;
#X connect 22 0 23 0;
#X connect 23 0 6 0;
#X connect 23 1 5 0;
#X connect 24 0 6 0;
#X connect 25 0 12 0;