-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathimplicitmap.help.pd
149 lines (149 loc) · 4.72 KB
/
implicitmap.help.pd
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
#N canvas 188 125 440 435 10;
#X text 20 12 mapper;
#X text 22 27 A pd wrapper for libmapper/Digital Orchestra Tools;
#X text 20 353 For more information visit;
#X text 21 368 www.idmil.org/software/libmapper;
#X obj 30 79 r mapper;
#N canvas 419 849 450 300 adding_signals 0;
#X text 19 15 Input and ouput signals can be added to the device by
sending the message "add input" or "add output" along with a signal
name and data type. Signal metadata is specified using tagged arguments
\; only the type tag is required but any others can be added. If min
and max tags are supplied the system will be able to automatically
use linear scaling when creating mapping connections.;
#X msg 29 131 add input /gain @type f @units normalized @min 0 @max
1;
#X msg 51 161 add input /rate @type f @units Hz @min 0 @max 100;
#X msg 80 192 add output /pressure @type f;
#X obj 29 236 s mapper;
#X msg 119 219 remove output /pressure;
#X connect 1 0 4 0;
#X connect 2 0 4 0;
#X connect 3 0 4 0;
#X connect 5 0 4 0;
#X restore 30 240 pd adding_signals;
#N canvas 93 171 451 421 learn_mode 0;
#X obj 111 28 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 111 62 metro 250;
#X obj 25 103 random 100;
#X obj 111 103 random 100;
#X obj 197 103 random 100;
#X obj 25 133 prepend /out1;
#X obj 111 133 prepend /out2;
#X obj 197 133 prepend /out3;
#X obj 25 235 mapper;
#X obj 58 294 route numOutputs;
#X floatatom 58 323 5 0 0 0 - - -;
#X msg 181 170 learn 1;
#X msg 181 195 learn 0;
#X text 135 28 1) start sending some signals;
#X text 235 168 2) turn on learn mode;
#X text 101 321 3) watch the number of reported signals;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 0 3 0;
#X connect 1 0 4 0;
#X connect 2 0 5 0;
#X connect 3 0 6 0;
#X connect 4 0 7 0;
#X connect 5 0 8 0;
#X connect 6 0 8 0;
#X connect 7 0 8 0;
#X connect 8 1 9 0;
#X connect 9 0 10 0;
#X connect 11 0 8 0;
#X connect 12 0 8 0;
#X restore 140 240 pd learn_mode;
#N canvas 571 453 760 406 simple_example 0;
#X obj 82 28 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 7800 1;
#X obj 82 169 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 7800 1;
#X obj 79 53 prepend /out1;
#X obj 334 158 buddy;
#X obj 334 275 oscmulticast @group 224.0.1.3 @port 7570;
#X obj 334 201 pack symbol symbol;
#X obj 439 175 tosymbol;
#X text 332 316 The administrative traffic for the mapping network
uses multicast UDP.;
#X text -24 239 Sends the /link and /connect messages which create
a mapping connection between the two instances of the mapper object
;
#X text 111 227 ---------------------------------->;
#X obj 79 142 route /in1;
#X obj 334 96 route name;
#X obj 361 133 route name;
#N canvas 0 22 450 300 add_signal 0;
#X obj 70 60 loadbang;
#X obj 70 113 outlet;
#X msg 70 87 add output /out1 @type f @length 1 @min 0 @max 127;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X restore -12 53 pd add_signal;
#N canvas 0 22 450 300 add_signal 0;
#X obj 70 60 loadbang;
#X obj 70 113 outlet;
#X msg 70 87 add input /in1 @type f @length 1 @min 0 @max 127;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X restore -12 90 pd add_signal;
#X obj 79 79 mapper;
#X obj 79 116 mapper;
#X obj 587 274 print to_admin;
#X msg 334 228 /link \$1 \$2 \, /connect \$1/out1 \$2/in1 @mode expression
@expression y=127-x;
#X connect 0 0 2 0;
#X connect 2 0 15 0;
#X connect 3 0 5 0;
#X connect 3 1 6 0;
#X connect 5 0 18 0;
#X connect 6 0 5 1;
#X connect 10 0 1 0;
#X connect 11 0 3 0;
#X connect 12 0 3 1;
#X connect 13 0 15 0;
#X connect 14 0 16 0;
#X connect 15 1 11 0;
#X connect 16 0 10 0;
#X connect 16 1 12 0;
#X connect 18 0 4 0;
#X connect 18 0 17 0;
#X restore 226 240 pd simple_example;
#X text 20 263 The mapper object forms part of a distributed network
of devices communicating over the local network. The inputs and outputs
of each device can be discovered and queried by other participants
in the network \, and mapping connections can be created \, edited
\, and destroyed using messages or graphical interfaces.;
#N canvas 1482 798 450 300 info 0;
#X obj 34 35 inlet;
#X obj 34 70 route name IP port numInputs numOutputs;
#X obj 34 141 symbol;
#X obj 34 166 outlet;
#X obj 80 141 symbol;
#X obj 80 166 outlet;
#X obj 126 166 outlet;
#X obj 172 166 outlet;
#X obj 218 166 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 4 0;
#X connect 1 2 6 0;
#X connect 1 3 7 0;
#X connect 1 4 8 0;
#X connect 2 0 3 0;
#X connect 4 0 5 0;
#X restore 165 132 pd info;
#X symbolatom 31 172 0 0 0 3 name - -;
#X floatatom 228 172 5 0 0 3 port - -;
#X floatatom 281 173 5 0 0 3 numInputs - -;
#X floatatom 346 173 5 0 0 3 numOutputs - -;
#X symbolatom 130 172 0 0 0 3 IP - -;
#X obj 30 108 mapper @alias my_device;
#X connect 4 0 15 0;
#X connect 9 0 10 0;
#X connect 9 1 14 0;
#X connect 9 2 11 0;
#X connect 9 3 12 0;
#X connect 9 4 13 0;
#X connect 15 1 9 0;