aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/all_about_hid_mapping.pd
blob: ddb57fb178b183837d8ce373e12c815d22ea4005 (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
#N canvas 304 56 880 562 10;
#N canvas 0 22 450 300 graph1 0;
#X array cuberoot 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 516 61 graph;
#N canvas 0 22 450 300 graph5 0;
#X array exponential 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 731 269 graph;
#N canvas 0 22 450 300 graph1 0;
#X array cube 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 731 61 graph;
#N canvas 0 22 450 300 graph5 0;
#X array square 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 731 165 graph;
#N canvas 0 22 450 300 graph1 0;
#X array logarithmic 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 516 269 graph;
#N canvas 0 22 450 300 graph1 0;
#X array squareroot 100 float 0;
#X coords 0 1 99 0 100 100 1;
#X restore 516 165 graph;
#X obj 179 124 hid_rel2abs;
#X obj 9 167 hid_smooth;
#N canvas 27 65 573 553 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 345 tabwrite logarithmic;
#X obj 77 170 t f f;
#X obj 183 486 tabwrite exponential;
#X obj 114 197 s array_index;
#X obj 443 267 r array_index;
#X obj 183 439 tabwrite square;
#X obj 183 300 tabwrite squareroot;
#X obj 183 326 hid_log;
#X obj 183 391 tabwrite cube;
#X obj 183 255 tabwrite cuberoot;
#X obj 183 467 hid_exp;
#X obj 77 23 loadbang;
#X obj 77 217 / 100;
#X text 119 217 [hid] output range: 0 to 1;
#X obj 183 236 pow 0.333333;
#X obj 183 372 pow 3;
#X obj 183 420 pow 2;
#X obj 183 281 pow 0.5;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 8 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 8 0 19 0;
#X connect 8 1 10 0;
#X connect 11 0 7 1;
#X connect 11 0 12 1;
#X connect 11 0 13 1;
#X connect 11 0 15 1;
#X connect 11 0 16 1;
#X connect 11 0 9 1;
#X connect 14 0 7 0;
#X connect 17 0 9 0;
#X connect 18 0 0 0;
#X connect 19 0 14 0;
#X connect 19 0 17 0;
#X connect 19 0 21 0;
#X connect 19 0 22 0;
#X connect 19 0 23 0;
#X connect 19 0 24 0;
#X connect 21 0 16 0;
#X connect 22 0 15 0;
#X connect 23 0 12 0;
#X connect 24 0 13 0;
#X restore 563 30 pd draw_arrays;
#X obj 650 316 hid_exp;
#X obj 411 317 hid_log;
#X obj 5 2 cnv 15 850 20 empty empty all_about_hid_mapping 20 10 1
18 -233017 -66577 0;
#X obj 821 3 pddp;
#X obj 156 329 hid_graph;
#X obj 9 102 notescale;
#X obj 653 104 pow 3;
#X obj 406 100 pow 0.333333;
#X text 643 173 square;
#X text 646 82 cube;
#X text 401 175 square root;
#X text 397 78 cube root;
#X text 402 299 logarithmic;
#X obj 651 203 pow 2;
#X obj 410 194 pow 0.5;
#X obj 410 214 sqrt;
#X obj 87 124 hid_centered;
#X obj 406 123 hid_cuberoot;
#X obj 653 130 hid_cube;
#X obj 651 224 hid_square;
#X obj 411 235 hid_squareroot;
#X text 641 297 exponential;
#X obj 9 213 buttongate;
#X obj 88 213 keygate;
#X text 341 393 - CURVE TEXT IDEAS;
#X text 370 419 - amplitude is generally perceived on a logarithmic
scale;
#X obj 9 124 hid_invert;
#X text 22 500 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 239 514 released under the GNU GPL;
#X text 445 501 $Revision: 1.5 $$Date: 2004-12-19 18:22:45 $;
#X text 446 514 $Author: eighthave $;
#X obj 88 167 hid_average;
#X text 1 83 SCALING AND RANGING;
#X text 1 150 SMOOTHING;
#X obj 173 167 hid_lowpass;
#X obj 85 102 autoscale;
#X text 1 196 BASIC CONTROLS;
#X text 2 237 ONE-TO-MANY MAPPING;
#X obj 9 262 hid_one2two;
#X obj 94 262 hid_one2three;
#X text 379 30 CURVES;
#X text 371 443 - pitch is perceived on logarithmic scale;
#X text 371 466 - many sensors work best on other curves;