aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/all_about_hid_mapping.pd
blob: 78dffb3ae4dd25eef7563d9e9a903ae678d4a52a (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
#N canvas 173 110 879 596 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 486 165 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 165 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 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 486 269 graph;
#X obj 179 124 hid_rel2abs;
#X obj 9 167 hid_smooth;
#N canvas 27 65 637 617 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 391 tabwrite cube;
#X obj 183 255 tabwrite cuberoot;
#X obj 77 23 loadbang;
#X obj 77 217 / 100;
#X text 119 217 [hid] output range: 0 to 1;
#X obj 183 236 hid_cuberoot;
#X obj 183 281 hid_squareroot;
#X obj 183 372 hid_cube;
#X obj 183 420 hid_square;
#X obj 183 326 hid_log;
#X obj 183 467 hid_exp;
#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 17 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 14 1;
#X connect 11 0 15 1;
#X connect 11 0 9 1;
#X connect 16 0 0 0;
#X connect 17 0 19 0;
#X connect 17 0 20 0;
#X connect 17 0 21 0;
#X connect 17 0 22 0;
#X connect 17 0 23 0;
#X connect 17 0 24 0;
#X connect 19 0 15 0;
#X connect 20 0 13 0;
#X connect 21 0 14 0;
#X connect 22 0 12 0;
#X connect 23 0 7 0;
#X connect 24 0 9 0;
#X restore 563 30 pd draw_arrays;
#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 731 386 hid_graph;
#X obj 9 102 notescale;
#X obj 87 124 hid_centered;
#X obj 379 208 hid_cuberoot;
#X obj 631 200 hid_cube;
#X obj 633 308 hid_square;
#X obj 381 308 hid_squareroot;
#X obj 9 213 buttongate;
#X obj 88 213 keygate;
#X text 16 448 - CURVE TEXT IDEAS;
#X text 46 464 - amplitude is generally perceived on a logarithmic
scale;
#X obj 9 124 hid_invert;
#X text 22 530 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 239 544 released under the GNU GPL;
#X text 445 531 $Revision: 1.9 $$Date: 2005-06-19 23:01:54 $;
#X text 446 544 $Author: eighthave $;
#X obj 88 167 hid_average;
#X text 1 83 SCALING AND RANGING;
#X text 1 150 SMOOTHING;
#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 47 481 - pitch is perceived on logarithmic scale;
#X text 47 496 - many sensors work best on other curves;
#X text 1 286 POLAR COORDINATES;
#X obj 9 303 hid_polar;
#X obj 82 303 hid_spiral;
#X obj 10 350 hid2rad;
#X obj 130 350 hid2deg;
#X obj 70 350 rad2hid;
#X obj 190 350 deg2hid;
#X text 1 330 ANGLE CONVERSIONS;
#X text 40 385 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.;
#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 486 61 graph;
#X obj 378 101 hid_log;
#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 61 graph;
#X obj 631 99 hid_exp;
#X text 37 51 [THIS IS A WORK-IN-PROGRESS];
#X obj 173 167 hid_lowpass;
#X obj 193 262 hid_one2four;
#X text 556 437 Or draw your own curve:;
#X obj 163 303 hid_vector;