~ubuntu-branches/ubuntu/oneiric/pd-ekext/oneiric

« back to all changes in this revision

Viewing changes to maskxor-help.pd

  • Committer: Bazaar Package Importer
  • Author(s): Hans-Christoph Steiner
  • Date: 2010-08-18 17:14:25 UTC
  • Revision ID: james.westby@ubuntu.com-20100818171425-7wehl0fqtaacqulx
Tags: upstream-0.1.1
ImportĀ upstreamĀ versionĀ 0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#N canvas 0 0 956 304 10;
 
2
#X obj 368 207 maskxor;
 
3
#X obj 457 63 t b b;
 
4
#X msg 38 157 bang;
 
5
#X floatatom 390 247 5 0 0 0 - - -;
 
6
#X floatatom 368 264 5 0 0 0 - - -;
 
7
#X floatatom 254 122 5 0 0 0 - - -;
 
8
#X msg 457 46 bang;
 
9
#X msg 457 80 listl 1 1 0 0 0 1 1;
 
10
#X msg 500 97 listr 0 1 1 0 2 1 0;
 
11
#X text 39 56 Maskxor takes two lists - listr and listl \, to set up
 
12
a map where map = listl ^ listr.;
 
13
#X text 37 93 Floats will only pass through if map[(int)float] > 0
 
14
\, so if the corresponding element is greater than zero in either listl
 
15
\, or listr \, but not both.;
 
16
#X text 76 148 outputs the map \, the xor-ed element and (if this is
 
17
greater than zero) the last float in.;
 
18
#X obj 412 227 print MASK;
 
19
#X text 41 22 Maskxor - exclusive-OR mask map by Edward Kelly. This
 
20
is GNU software.;
 
21
#X msg 39 193 clear;
 
22
#X text 79 192 resets the object;
 
23
#X text 29 283 Polyphony control objects by Ed Kelly November 2006
 
24
;
 
25
#X text 397 282 See also;
 
26
#X obj 458 280 sieve;
 
27
#X obj 501 280 polymap;
 
28
#X obj 558 280 polystat;
 
29
#N canvas 0 0 450 300 (subpatch) 0;
 
30
#X msg 174 179 0 1 0 0 1 1 2;
 
31
#X obj 150 84 loadbang;
 
32
#X obj 175 217 outlet;
 
33
#X connect 0 0 2 0;
 
34
#X connect 1 0 0 0;
 
35
#X restore 584 152 pd;
 
36
#X obj 568 173 l;
 
37
#X obj 534 148 t a b;
 
38
#X obj 568 190 prepend listr;
 
39
#X obj 473 190 prepend listl;
 
40
#X msg 662 97 1 0 0 1 1;
 
41
#X msg 678 114 1 1 0 0 0 1;
 
42
#X msg 721 131 0 1 1 0 2 1 0;
 
43
#X msg 669 190 mode \$1;
 
44
#X obj 669 167 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
 
45
1;
 
46
#X text 728 191 ... in mode 1 \, floats are only;
 
47
#X text 729 204 passed through the left outlet;
 
48
#X text 728 217 when the left list contains;
 
49
#X text 727 229 fewer non-zero elements than;
 
50
#X text 727 241 the right list. CHANGED BEHAVIOUR!;
 
51
#X msg 651 65 1 0 0 1 0 0 0 1;
 
52
#X msg 638 49 1 0 0 1 0 1 0 1;
 
53
#X text 847 123 |;
 
54
#X text 847 132 |;
 
55
#X text 847 141 |;
 
56
#X text 847 150 |;
 
57
#X text 847 159 |;
 
58
#X text 847 168 |;
 
59
#X text 847 177 |;
 
60
#X text 761 60 _;
 
61
#X text 768 60 _;
 
62
#X text 775 60 _;
 
63
#X text 782 60 _;
 
64
#X text 789 60 _;
 
65
#X text 796 60 _;
 
66
#X text 803 60 _;
 
67
#X text 810 60 _;
 
68
#X text 817 60 _;
 
69
#X text 824 60 _;
 
70
#X text 831 60 _;
 
71
#X text 838 60 _;
 
72
#X text 845 60 _;
 
73
#X text 847 69 |;
 
74
#X text 847 78 |;
 
75
#X text 847 87 |;
 
76
#X text 847 96 |;
 
77
#X text 847 105 |;
 
78
#X text 847 114 |;
 
79
#X text 759 65 <;
 
80
#X connect 0 0 4 0;
 
81
#X connect 0 1 3 0;
 
82
#X connect 0 2 12 0;
 
83
#X connect 1 0 7 0;
 
84
#X connect 1 1 8 0;
 
85
#X connect 2 0 0 0;
 
86
#X connect 5 0 0 0;
 
87
#X connect 6 0 1 0;
 
88
#X connect 7 0 0 0;
 
89
#X connect 8 0 0 0;
 
90
#X connect 14 0 0 0;
 
91
#X connect 21 0 22 1;
 
92
#X connect 22 0 24 0;
 
93
#X connect 23 0 22 1;
 
94
#X connect 23 0 25 0;
 
95
#X connect 23 1 22 0;
 
96
#X connect 24 0 0 0;
 
97
#X connect 25 0 0 0;
 
98
#X connect 26 0 23 0;
 
99
#X connect 27 0 23 0;
 
100
#X connect 28 0 23 0;
 
101
#X connect 29 0 0 0;
 
102
#X connect 30 0 29 0;
 
103
#X connect 36 0 23 0;
 
104
#X connect 37 0 23 0;