-
Notifications
You must be signed in to change notification settings - Fork 3
/
1. IOBox.v4p
333 lines (333 loc) · 16.9 KB
/
1. IOBox.v4p
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
<!DOCTYPE PATCH SYSTEM "http://vvvv.org/versions/vvvv45beta26.dtd" >
<PATCH nodename="C:\kimchiandchips\Workshops\VVVV-basics,mapping\1. IOBox.v4p" filename="C:\kimchiandchips\Workshops\VVVV-basics,mapping\template.v4p" locked="0" systemname="template">
<BOUNDS height="14070" left="-8535" top="0" type="Window" width="8370">
</BOUNDS>
<NODE componentmode="InABox" id="0" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="225" top="150" type="Node" width="1380">
</BOUNDS>
<BOUNDS height="1095" left="225" top="150" type="Box" width="7665">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|1. IOBox|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="1">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Size" slicecount="1" values="42">
</PIN>
</NODE>
<NODE componentmode="InABox" id="2" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="105" top="12705" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="750" left="105" top="12705" type="Box" width="5325">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|Created by Elliot Woods.&cr;&lf;Distributed under the MIT license (check file LICENSE) for details.&cr;&lf;Generally you can do whatever you want with these files. have fun!|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="1">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
</NODE>
<NODE componentmode="InABox" id="5" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="5805" top="2640" type="Node" width="1380">
</BOUNDS>
<BOUNDS height="540" left="5805" top="2640" type="Box" width="2085">
</BOUNDS>
<PIN encoded="0" pinname="Input String" visible="1">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Size" slicecount="1" values="12">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="Author">
</PIN>
</NODE>
<NODE componentmode="InABox" id="6" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="225" top="1260" type="Node" width="1380">
</BOUNDS>
<BOUNDS height="1155" left="225" top="1260" type="Box" width="7665">
</BOUNDS>
<PIN encoded="0" pinname="Input String" visible="1">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Size" slicecount="1" values="12">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="Description">
</PIN>
</NODE>
<INFO author="Elliot Woods" description="IOBox basics, interacting with VVVV" tags="IOBox, Value">
</INFO>
<NODE componentmode="Hidden" filename="Subpatches\GetMetadata (VVVV).v4p" hiddenwhenlocked="1" id="10" nodename="GetMetadata (VVVV)" systemname="GetMetadata (VVVV)">
<BOUNDS height="100" left="5820" top="1800" type="Node" width="100">
</BOUNDS>
<PIN pinname="Patch" visible="1">
</PIN>
<BOUNDS height="3465" left="14520" top="5520" type="Window" width="4680">
</BOUNDS>
<PIN pinname="Author" visible="1">
</PIN>
<PIN pinname="Description" visible="1">
</PIN>
<PIN pinname="Tags" visible="1">
</PIN>
</NODE>
<NODE componentmode="Hidden" hiddenwhenlocked="1" id="8" nodename="PatchAlias (VVVV)" systemname="PatchAlias (VVVV)">
<BOUNDS height="100" left="5820" top="1350" type="Node" width="100">
</BOUNDS>
<PIN pinname="Patch" visible="1">
</PIN>
</NODE>
<LINK dstnodeid="10" dstpinname="Patch" hiddenwhenlocked="1" srcnodeid="8" srcpinname="Patch">
</LINK>
<LINK dstnodeid="6" dstpinname="Input String" hiddenwhenlocked="1" linkstyle="VHV" srcnodeid="10" srcpinname="Description">
<LINKPOINT x="6445" y="2205">
</LINKPOINT>
<LINKPOINT x="245" y="2355">
</LINKPOINT>
</LINK>
<NODE componentmode="InABox" id="11" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="225" top="2640" type="Node" width="1380">
</BOUNDS>
<BOUNDS height="540" left="225" top="2640" type="Box" width="5520">
</BOUNDS>
<PIN encoded="0" pinname="Input String" visible="1">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Size" slicecount="1" values="12">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="Tags">
</PIN>
</NODE>
<LINK dstnodeid="11" dstpinname="Input String" hiddenwhenlocked="1" linkstyle="VHV" srcnodeid="10" srcpinname="Tags">
<LINKPOINT x="7015" y="2293">
</LINKPOINT>
<LINKPOINT x="275" y="2448">
</LINKPOINT>
</LINK>
<LINK dstnodeid="5" dstpinname="Input String" hiddenwhenlocked="1" srcnodeid="10" srcpinname="Author">
</LINK>
<NODE componentmode="InABox" id="12" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="2730" top="3690" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="330" left="2730" top="3690" type="Box" width="1770">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[0 - IOBox]&cr;&lf;The most basic input / output mechanism in VVVV is the <node>IOBox</node>.&cr;&lf;<br />&cr;&lf;&cr;&lf;There are different IOBoxes for different types of data (Value, String, Color, Enum, Node).&cr;&lf;<br />&cr;&lf;&cr;&lf;The most basic type of data is called a Value, which means a real number (note for programmers: this is currently represented by a double precision floating point value).&cr;&lf;<br />&cr;&lf;&cr;&lf;IOBoxes perform multiple roles:&cr;&lf;<ol>&cr;&lf;<li>Give opportunities for user input/output</li>&cr;&lf;<li>Holds data when no input is connected</li>&cr;&lf;<li>Perform access to inputs/outputs of subpatches (more on that later!)</li>&cr;&lf;</ol>&cr;&lf;|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE componentmode="InABox" id="14" nodename="IOBox (Value Advanced)" systemname="IOBox (Value Advanced)">
<BOUNDS height="100" left="390" top="4665" type="Node" width="100">
</BOUNDS>
<BOUNDS height="1215" left="390" top="4665" type="Box" width="3645">
</BOUNDS>
<PIN pinname="Size" slicecount="1" values="47">
</PIN>
<PIN pinname="Y Output Value" visible="1">
</PIN>
<PIN pinname="Y Input Value" slicecount="1" values="0">
</PIN>
</NODE>
<NODE componentmode="InABox" id="17" nodename="IOBox (Value Advanced)" systemname="IOBox (Value Advanced)">
<BOUNDS height="100" left="2415" top="6645" type="Node" width="100">
</BOUNDS>
<BOUNDS height="660" left="2415" top="6645" type="Box" width="1965">
</BOUNDS>
<PIN pinname="Size" slicecount="1" values="24">
</PIN>
<PIN pinname="Y Output Value" visible="1">
</PIN>
</NODE>
<NODE componentmode="InABox" id="18" nodename="IOBox (Value Advanced)" systemname="IOBox (Value Advanced)">
<BOUNDS height="100" left="2415" top="8400" type="Node" width="100">
</BOUNDS>
<BOUNDS height="660" left="2415" top="8400" type="Box" width="1965">
</BOUNDS>
<PIN pinname="Size" slicecount="1" values="24">
</PIN>
<PIN pinname="Y Output Value" visible="1">
</PIN>
<PIN pinname="Y Input Value" visible="1">
</PIN>
</NODE>
<LINK dstnodeid="18" dstpinname="Y Input Value" srcnodeid="17" srcpinname="Y Output Value">
</LINK>
<NODE componentmode="InABox" id="19" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="2280" top="6195" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="315" left="2280" top="6195" type="Box" width="2805">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[4 - When connected]&cr;&lf;When an <pin>input</pin> is connected, then you cannot edit that input. &cr;&lf;&cr;&lf;Since altering the value of an IOBox would alter the value of an input, you cannot interact directly with the value of an IOBox when an input is attached.|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE componentmode="InABox" id="20" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="4200" top="4875" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="330" left="4200" top="4875" type="Box" width="3300">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[1 - Drag right mouse button]&cr;&lf;&cr;&lf;Move your mouse cursor over the IOBox without pressing any buttons. Now hold down the right mouse button <hold/><rmb/>and drag up/down to change the value.&cr;&lf;<br />&cr;&lf;&cr;&lf;To move through values more slowly (more accuracy) hold down either <key>Ctrl</key> or <key>Shift</key> whilst dragging the right mouse button: e.g. <key>Ctrl</key>+<hold/><rmb/>. Hold down both to get even more accuracy <key>Ctrl</key>+<key>Shift</key>+<hold/><rmb/>.&cr;&lf;<br />&cr;&lf;&cr;&lf;To move through values more quickly hold down <key>Alt</key>+<key>Ctrl</key> or <key>Alt</key>+<key>Shift</key> whilst dragging the right mouse button. Hold <key>Alt</key>+<key>Ctrl</key>+<key>Shift</key> for maximum speed.&cr;&lf;<br />&cr;&lf;&cr;&lf;In VVVV, generally we use the right mouse button <rmb/> for interacting with Values and other datatypes. We use the left mouse button <lmb/> to change the patch itself.|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE componentmode="InABox" id="21" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="4200" top="5445" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="330" left="4200" top="5445" type="Box" width="2700">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[2 - Double left click]&cr;&lf;&cr;&lf;The alternative way of changing the value is to double click on the IOBox <click2/><lmb/> to change the value by entering it with the keyboard.|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE componentmode="InABox" id="22" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="4200" top="4470" type="Node" width="1290">
</BOUNDS>
<BOUNDS height="270" left="4200" top="4470" type="Box" width="1290">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|Ways to interact|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
</NODE>
<NODE componentmode="InABox" id="23" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="360" top="4305" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="330" left="360" top="4305" type="Box" width="3030">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[3 - Editing using input pin]&cr;&lf;&cr;&lf;In general, we can edit the value of an input pin by right clicking on it <click/><rmb/>. We can also use right click drag <hold/><rmb/>.&cr;&lf;&cr;&lf;An IOBox is a very special type of node where the contents can effect the input pin. No other node will affect its input pin.|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE componentmode="InABox" id="25" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="2055" top="9510" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="315" left="2055" top="9510" type="Box" width="2805">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[5 - Spreaded IOBoxes]&cr;&lf;An <node>IOBox</node> can carry more than one <concept>Value</concept>. VVVV has a special way of dealing with several values at the same time, this is called a <concept>Spread</concept>.&cr;&lf;<br />&cr;&lf;&cr;&lf;Here we have an <node>IOBox</node> which works with 4 values. This is sometimes called a '4D vector' <node>IOBox</node>|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE systemname="IOBox (Value Advanced)" nodename="IOBox (Value Advanced)" componentmode="InABox" id="26">
<BOUNDS type="Node" left="2835" top="9885" width="100" height="100">
</BOUNDS>
<BOUNDS type="Box" left="2835" top="9885" width="1095" height="1455">
</BOUNDS>
<PIN pinname="Rows" slicecount="1" values="4">
</PIN>
<PIN pinname="Y Input Value" slicecount="4" values="0,0,0,1">
</PIN>
<PIN pinname="Vector Size" slicecount="1" values="4">
</PIN>
<PIN pinname="Default" slicecount="1" values="|0, 0, 0, 1|" encoded="0">
</PIN>
<PIN pinname="Size" slicecount="1" values="13">
</PIN>
</NODE>
<NODE componentmode="InABox" id="27" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="1725" top="11910" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="345" left="1725" top="11910" type="Box" width="3600">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[6 - Shortcut to create IOBox]&cr;&lf;Since you'll be making these all the time, VVVV kindly gives you a shortcut to create a new <node>IOBox</node>.&cr;&lf;<br />&cr;&lf;&cr;&lf;To do this double right click <click2/><rmb/> in an empty area of the patch. This will give you a simple <node>IOBox (Value advanced)</node>. <br />&cr;&lf;&cr;&lf;A menu will also appear allowing you to create different types of <node> IOBox</node>.|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
</PATCH>