aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/about/mapping-about.pd
blob: b3fe3c309e16a3c369e62a0ec273a2b78c39518f (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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
#N canvas 33 239 763 533 10;
#X obj 0 0 cnv 15 750 17 empty empty Mapping 10 9 0 16 -233017 -66577
0;
#X obj 305 18 cnv 15 440 15 empty empty Getting_your_message_across
10 7 0 12 -217069 -33289 0;
#X obj 305 230 cnv 15 440 15 empty empty Broadcasting_with_sends_and_receives
10 7 0 12 -217069 -33289 0;
#X obj 305 18 cnv 5 5 500 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 0 500 cnv 15 750 20 bs br PDDP_Project_2005 10 10 0 14 -217069
-1 0;
#N canvas 0 22 454 304 META 0;
#X restore 151 502 pd META;
#N canvas 696 168 500 380 PAGES 0;
#X text 19 9 Put your pages here: (They must be named [pd PAGE1] [pd
PAGE2]... (PAGE0 is the main patch).;
#X obj 12 143 pddp_page 3;
#X text 9 109 Don't forget to set the number of pages \, including
the main page.;
#N canvas 121 197 763 533 PAGE2 0;
#X obj 0 0 cnv 15 750 17 empty empty Mapping 10 9 0 16 -233017 -66577
0;
#X obj 305 18 cnv 15 440 15 empty empty Internal_sends_and_receives
10 7 0 12 -217069 -33289 0;
#X obj 305 18 cnv 5 5 500 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 0 500 cnv 15 750 20 bs br PDDP_2005 10 10 0 14 -217069 -1 0
;
#X obj 624 503 bng 15 250 50 0 pddpNextPage \$0- Previous -60 8 0 12
-262144 -1 -1;
#X obj 644 503 cnv 15 15 15 empty empty 1 0 8 0 12 -217069 -1 0;
#X obj 660 503 cnv 15 15 15 empty empty of 0 8 0 12 -217069 -1 0;
#X obj 676 503 cnv 15 25 15 empty pddpNumPages 3 4 8 0 12 -217069 -1
0;
#X obj 692 503 bng 15 250 50 0 pddpNextPage \$0- Next 20 8 0 12 -262144
-1 -1;
#X obj 305 200 cnv 15 440 15 empty empty Explicit_vs_hidden 10 7 0
12 -217069 -33289 0;
#N canvas 0 22 450 300 graph1 0;
#X array 4throot 100 float 0;
#X coords 0 1 99 -1 100 100 1;
#X restore 197 168 graph;
#N canvas 0 22 450 300 graph1 0;
#X array cuberoot 100 float 0;
#X coords 0 1 99 -1 100 100 1;
#X restore 197 277 graph;
#N canvas 0 22 450 300 graph1 0;
#X array logarithmic 100 float 0;
#X coords 0 1 99 -1 100 100 1;
#X restore 197 58 graph;
#X obj 121 58 curve_log;
#N canvas 0 22 450 300 graph1 0;
#X array squareroot 100 float 0;
#X coords 0 1 99 -1 100 100 1;
#X restore 197 387 graph;
#X obj 109 387 curve_root 2;
#X obj 109 277 curve_root 3;
#X obj 109 168 curve_root 4;
#N canvas 0 22 450 300 graph1 0;
#X array \$0-4throot0 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 7 168 graph;
#N canvas 0 22 450 300 graph1 0;
#X array \$0-cuberoot0 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 7 277 graph;
#N canvas 0 22 450 300 graph1 0;
#X array \$0-logarithmic0 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 7 58 graph;
#N canvas 0 22 450 300 graph1 0;
#X array \$0-squareroot0 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 7 387 graph;
#X text 131 27 range;
#X text 221 28 -1 to 1;
#X text 34 27 0 to 1;
#N canvas 314 57 701 681 draw_arrays 0;
#X msg 77 62 bang;
#X obj 77 83 until;
#X text 108 62 start;
#X obj 77 105 f;
#X obj 106 105 + 1;
#X obj 152 107 sel 0;
#X obj 106 127 mod 100;
#X obj 183 395 tabwrite logarithmic;
#X obj 183 300 tabwrite squareroot;
#X obj 183 255 tabwrite cuberoot;
#X obj 77 23 loadbang;
#X obj 77 156 trigger float float;
#X obj 77 217 / 50;
#X obj 77 191 - 50;
#X obj 183 376 curve_log;
#X obj 183 236 curve_root 3;
#X obj 183 281 curve_root 2;
#X obj 183 332 curve_root 4;
#X obj 183 351 tabwrite 4throot;
#X obj 483 211 float;
#X obj 183 561 curve_log;
#X obj 183 421 curve_root 3;
#X obj 183 466 curve_root 2;
#X obj 183 517 curve_root 4;
#X obj 18 217 / 100;
#X obj 183 485 tabwrite \$0-squareroot0;
#X obj 183 440 tabwrite \$0-cuberoot0;
#X obj 183 536 tabwrite \$0-4throot0;
#X obj 183 580 tabwrite \$0-logarithmic0;
#X obj 171 33 metro 5000;
#X obj 171 13 loadbang;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 11 0;
#X connect 4 0 6 0;
#X connect 5 0 1 1;
#X connect 6 0 3 1;
#X connect 6 0 5 0;
#X connect 10 0 0 0;
#X connect 11 0 13 0;
#X connect 11 0 24 0;
#X connect 11 1 19 0;
#X connect 12 0 14 0;
#X connect 12 0 15 0;
#X connect 12 0 16 0;
#X connect 12 0 17 0;
#X connect 13 0 12 0;
#X connect 14 0 7 0;
#X connect 15 0 9 0;
#X connect 16 0 8 0;
#X connect 17 0 18 0;
#X connect 19 0 7 1;
#X connect 19 0 8 1;
#X connect 19 0 9 1;
#X connect 19 0 18 1;
#X connect 19 0 25 1;
#X connect 19 0 26 1;
#X connect 19 0 27 1;
#X connect 19 0 28 1;
#X connect 20 0 28 0;
#X connect 21 0 26 0;
#X connect 22 0 25 0;
#X connect 23 0 27 0;
#X connect 24 0 21 0;
#X connect 24 0 22 0;
#X connect 24 0 23 0;
#X connect 24 0 20 0;
#X connect 29 0 0 0;
#X connect 30 0 29 0;
#X restore 106 502 pd draw_arrays;
#X text 312 291 - CURVE TEXT IDEAS;
#X text 342 307 - amplitude is generally perceived on a logarithmic
scale;
#X text 343 324 - pitch is perceived on logarithmic scale;
#X text 343 339 - many sensors work best on other curves;
#X text 336 234 Objects that start with "hid_" accept input data in
the range of 0-1 and output data in the same range \, allowing you
to chain as many of these objects together without thinking about scaling
the resulting data with each step.;
#X restore 14 54 pd PAGE2;
#N canvas 25 25 763 533 PAGE4 0;
#X obj 0 0 cnv 15 750 17 empty empty Mapping 10 9 0 16 -233017 -66577
0;
#X obj 6 328 cnv 15 300 15 empty empty Related_Objects 10 7 0 12 -217069
-33289 0;
#X obj 0 500 cnv 15 750 20 bs br PDDP_2005 10 10 0 14 -217069 -1 0
;
#X obj 624 503 bng 15 250 50 0 pddpNextPage \$0- Previous -60 8 0 12
-262144 -1 -1;
#X obj 644 503 cnv 15 15 15 empty empty 1 0 8 0 12 -217069 -1 0;
#X obj 660 503 cnv 15 15 15 empty empty of 0 8 0 12 -217069 -1 0;
#X obj 676 503 cnv 15 25 15 empty pddpNumPages 3 4 8 0 12 -217069 -1
0;
#X obj 692 503 bng 15 250 50 0 pddpNextPage \$0- Next 20 8 0 12 -262144
-1 -1;
#X obj 745 0 cnv 5 5 500 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 0 0 cnv 5 5 500 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 305 16 cnv 5 5 485 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 38 388 LINK: universal-help.pd;
#X obj 18 361 cnv 15 100 17 empty empty cyclone 3 9 0 12 -233017 -1
0;
#X text 39 447 LINK: send13-help.pd;
#X text 39 467 LINK: receive13-help.pd;
#X obj 18 421 cnv 15 100 17 empty empty ext13 3 9 0 12 -233017 -1 0
;
#X obj 305 378 cnv 15 440 15 empty empty More_Info 10 7 0 12 -217069
-33289 0;
#X text 345 401 LINK: spiffy example;
#X text 345 416 LINK: Scope and Locality;
#X text 345 432 LINK: pd-msg docs;
#X obj 305 18 cnv 15 440 15 empty empty Sending_And_Receiving_from_Pd_itself
10 7 0 12 -217069 -33289 0;
#X text 358 70 blah blah blah \, no text here yet.;
#X text 17 123 Or draw your own curve:;
#X obj 192 72 curve_graph;
#X restore 158 56 pd PAGE4;
#N canvas 466 121 771 541 PAGE3 0;
#X obj 0 0 cnv 15 750 17 empty empty Mapping 10 9 0 16 -233017 -66577
0;
#X obj 305 18 cnv 15 440 15 empty empty Internal_sends_and_receives
10 7 0 12 -217069 -33289 0;
#X obj 305 18 cnv 5 5 500 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 0 500 cnv 15 750 20 bs br PDDP_2005 10 10 0 14 -217069 -1 0
;
#X obj 624 503 bng 15 250 50 0 pddpNextPage \$0- Previous -60 8 0 12
-262144 -1 -1;
#X obj 644 503 cnv 15 15 15 empty empty 1 0 8 0 12 -217069 -1 0;
#X obj 660 503 cnv 15 15 15 empty empty of 0 8 0 12 -217069 -1 0;
#X obj 676 503 cnv 15 25 15 empty pddpNumPages 3 4 8 0 12 -217069 -1
0;
#X obj 692 503 bng 15 250 50 0 pddpNextPage \$0- Next 20 8 0 12 -262144
-1 -1;
#X obj 305 200 cnv 15 440 15 empty empty Explicit_vs_hidden 10 7 0
12 -217069 -33289 0;
#N canvas 0 22 450 300 graph1 0;
#X array 4thpower 100 float 0;
#X coords 0 1 99 -1 100 100 1;
#X restore 197 168 graph;
#N canvas 0 22 450 300 graph1 0;
#X array cube 100 float 0;
#X coords 0 1 99 -1 100 100 1;
#X restore 197 277 graph;
#N canvas 0 22 450 300 graph1 0;
#X array exponential 100 float 0;
#X coords 0 1 99 -1 100 100 1;
#X restore 197 58 graph;
#X obj 114 58 curve_exp;
#N canvas 0 22 450 300 graph1 0;
#X array square 100 float 0;
#X coords 0 1 99 -1 100 100 1;
#X restore 197 387 graph;
#X obj 102 387 curve_power 2;
#X obj 102 277 curve_power 3;
#X obj 102 168 curve_power 4;
#N canvas 0 22 450 300 graph1 0;
#X array \$0-4thpower0 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 0 168 graph;
#N canvas 0 22 450 300 graph1 0;
#X array \$0-cube0 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 0 277 graph;
#N canvas 0 22 450 300 graph1 0;
#X array \$0-exponential0 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 0 58 graph;
#N canvas 0 22 450 300 graph1 0;
#X array \$0-square0 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 0 387 graph;
#X text 124 27 range;
#X text 221 28 -1 to 1;
#X text 27 27 0 to 1;
#N canvas 70 100 705 685 draw_arrays 0;
#X msg 77 62 bang;
#X obj 77 83 until;
#X text 108 62 start;
#X obj 77 105 f;
#X obj 106 105 + 1;
#X obj 152 107 sel 0;
#X obj 106 127 mod 100;
#X obj 183 395 tabwrite exponential;
#X obj 183 300 tabwrite square;
#X obj 183 255 tabwrite cube;
#X obj 77 23 loadbang;
#X obj 77 156 trigger float float;
#X obj 77 217 / 50;
#X obj 77 191 - 50;
#X obj 183 376 curve_exp;
#X obj 183 236 curve_power 3;
#X obj 183 332 curve_power 4;
#X obj 183 351 tabwrite 4thpower;
#X obj 483 211 float;
#X obj 183 561 curve_exp;
#X obj 183 421 curve_power 3;
#X obj 183 466 curve_power 2;
#X obj 183 517 curve_power 4;
#X obj 18 217 / 100;
#X obj 183 485 tabwrite \$0-square0;
#X obj 183 440 tabwrite \$0-cube0;
#X obj 183 536 tabwrite \$0-4thpower0;
#X obj 183 580 tabwrite \$0-exponential0;
#X obj 183 281 curve_power 2;
#X obj 149 38 metro 5000;
#X obj 149 19 loadbang;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 11 0;
#X connect 4 0 6 0;
#X connect 5 0 1 1;
#X connect 6 0 3 1;
#X connect 6 0 5 0;
#X connect 10 0 0 0;
#X connect 11 0 13 0;
#X connect 11 0 23 0;
#X connect 11 1 18 0;
#X connect 12 0 14 0;
#X connect 12 0 15 0;
#X connect 12 0 16 0;
#X connect 12 0 28 0;
#X connect 13 0 12 0;
#X connect 14 0 7 0;
#X connect 15 0 9 0;
#X connect 16 0 17 0;
#X connect 18 0 7 1;
#X connect 18 0 8 1;
#X connect 18 0 9 1;
#X connect 18 0 17 1;
#X connect 18 0 24 1;
#X connect 18 0 25 1;
#X connect 18 0 26 1;
#X connect 18 0 27 1;
#X connect 19 0 27 0;
#X connect 20 0 25 0;
#X connect 21 0 24 0;
#X connect 22 0 26 0;
#X connect 23 0 20 0;
#X connect 23 0 21 0;
#X connect 23 0 22 0;
#X connect 23 0 19 0;
#X connect 28 0 8 0;
#X connect 29 0 0 0;
#X connect 30 0 29 0;
#X restore 106 502 pd draw_arrays;
#X restore 85 54 pd PAGE3;
#X coords 0 0 1.01598e-05 1.58148e-05 96 15 0;
#X restore 208 502 pd PAGES;
#X obj 624 503 bng 15 250 50 0 pddpNextPage \$0- Previous -60 8 0 12
-262144 -1 -1;
#X obj 644 503 cnv 15 15 15 empty empty 1 0 8 0 12 -217069 -1 0;
#X obj 660 503 cnv 15 15 15 empty empty of 0 8 0 12 -217069 -1 0;
#X obj 676 503 cnv 15 25 15 empty pddpNumPages 3 4 8 0 12 -217069 -1
0;
#X obj 692 503 bng 15 250 50 0 pddpNextPage \$0- Next 20 8 0 12 -262144
-1 -1;
#X obj 183 73 hid_rel2abs;
#X obj 13 116 hid_smooth;
#X obj 13 51 notescale;
#X obj 91 73 hid_centered;
#X obj 13 162 buttongate;
#X obj 92 162 keygate;
#X obj 92 116 hid_average;
#X text 5 32 SCALING AND RANGING;
#X text 5 99 SMOOTHING;
#X obj 89 51 autoscale;
#X text 5 145 BASIC CONTROLS;
#X text 6 186 ONE-TO-MANY MAPPING;
#X obj 13 211 hid_one2two;
#X obj 98 211 hid_one2three;
#X text 5 235 POLAR COORDINATES;
#X text 5 279 ANGLE CONVERSIONS;
#X obj 177 116 hid_lowpass;
#X obj 197 211 hid_one2four;
#X obj 13 73 reverse;
#X obj 63 252 polar;
#X obj 106 252 spiral;
#X obj 13 252 vector;
#X obj 126 319 degrees2mapping;
#X obj 14 319 mapping2degrees;
#X obj 126 299 radians2mapping;
#X obj 14 299 mapping2radians;