aboutsummaryrefslogtreecommitdiff
path: root/config/C5Sign.xml
blob: f99ef2b18b2d3387738e78ca374499ae0738ad97 (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
366
367
<!---All configuration items contain a "Class" tag specifying the python class they represent, and an "Args" tag specifying the args to be passed in.-->
<LightInstallation>
    <InstallationConfiguration>
        <Defaults>
            <PixelMapper>simplemap</PixelMapper>
        </Defaults>
    </InstallationConfiguration>
    <PixelConfiguration>
        <InheritsFrom>layouts/C5SignLayout.xml</InheritsFrom>
    </PixelConfiguration>
    <PixelMapperConfiguration>
        <PixelMapper>
            <Class>pixelmappers.C5SignMapper</Class>
            <Args>
                <Id>simplemap</Id>
                <CutoffDist>20</CutoffDist>
            </Args>
        </PixelMapper>
        <PixelMapper>
            <Class>pixelmappers.GaussianMapper</Class>
            <Args>
                <Id>gaussmap</Id>
                <CutoffDist>30</CutoffDist>
                <MinWeight>0.1</MinWeight>
                <Width>7</Width>
                <Height>1</Height>
            </Args>
        </PixelMapper>
        <PixelMapper>
            <Class>pixelmappers.C5SignMapper</Class>
            <Args>
                <Id>c5signmapper</Id>
                <CutoffDist>20</CutoffDist>
            </Args>
        </PixelMapper>
    </PixelMapperConfiguration>
    <RendererConfiguration>
        <APPEND><Renderer>
            <InheritsFrom>renderers/C5Renderer.xml</InheritsFrom>
        </Renderer></APPEND>
    </RendererConfiguration>
    <InputConfiguration>
        <APPEND><InputElement>
            <Class>inputs.ParametricLocationInput</Class>
            <Args>
                <Id>centerleft</Id>
                <xloc>left</xloc>
                <yloc>center</yloc>
                <xEquation>0</xEquation>
                <yEquation>.5</yEquation>
                <RefreshInterval>1800</RefreshInterval>
            </Args>
        </InputElement>
        <InputElement>
            <Class>inputs.InitialLocationInput</Class>
            <Args>
                <Id>centeronce</Id>
                <xPos>0.5</xPos>
                <yPos>0.5</yPos>
            </Args>
        </InputElement>
        <InputElement>
            <Class>inputs.OSCInput</Class>
            <Args>
                <Id>osc</Id>
                <Port>1234</Port>
                <RefreshInterval>10</RefreshInterval>
            </Args>
        </InputElement>
        <InputElement>
            <Class>inputs.UDPInput</Class>
            <Args>
                <Id>udp</Id>
                <Port>3344</Port>
                <RefreshInterval>50</RefreshInterval>
            </Args>
        </InputElement>
        <InputElement>
            <Class>inputs.ContinuousCenterInput</Class>
            <Args>
                <Id>center</Id>
                <RefreshInterval>700</RefreshInterval>
            </Args>
        </InputElement></APPEND>
    </InputConfiguration>
    <BehaviorConfiguration>
        <Behavior>
            <Args>
                <Id>touchosc</Id>
            </Args>
            <Class>behaviors.TouchOSC</Class>
        </Behavior>
        <Behavior Id="slowdecay">
            <InheritsFrom>behaviors/PixelDecay.xml</InheritsFrom>
            <Args>
                <Coefficient>.001</Coefficient>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.ModifyParam</Class>
            <Args>
                <Id>incrVertBarLoc</Id>
                <ParamName>xLoc</ParamName>
                <ParamOp>{val}+1</ParamOp>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.VerticalBar</Class>
            <Args>
                <Id>vertBar</Id>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>bar_move</Id>
                <ChainedBehaviors>
                    <Id>vertBar</Id>
                    <Id>incrVertBarLoc</Id>
                    <Id>recursivedecay</Id>
                </ChainedBehaviors>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>scanningbars</Id>
                <Inputs>
                    <Id>centerleft</Id>
                </Inputs>
                <ChainedBehaviors>
                    <Id>colorchange</Id>
                    <Id>mover</Id>
                    <Id>slowdecay</Id>
                    <Id>wordsonly</Id>
                </ChainedBehaviors>
                <RecursiveHooks>{'mover':'bar_move'}</RecursiveHooks>
                <RenderToScreen>False</RenderToScreen>
            </Args>
        </Behavior>
        <Behavior Id="redcolor">
            <InheritsFrom>behaviors/RandomColor.xml</InheritsFrom>
            <Args>
                <ColorList>
                    <Color>(255,0,0)</Color>
                </ColorList>
            </Args>
        </Behavior>
        <Behavior Id="colorchange">
            <InheritsFrom>behaviors/RandomColor.xml</InheritsFrom>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>OSCTouchChase</Id>
                <Inputs>
                    <Id>osc</Id>
                </Inputs>
                <ChainedBehaviors>
                    <Id>touchosc</Id>
                    <Id>decay</Id>
                </ChainedBehaviors>
                <Mapper>gaussmap</Mapper>
                <RenderToScreen>False</RenderToScreen>
            </Args>
        </Behavior>
        <Behavior Id="decay">
            <InheritsFrom>behaviors/PixelDecay.xml</InheritsFrom>
        </Behavior>
        <Behavior Id="singleframe">
            <InheritsFrom>behaviors/SingleFrame.xml</InheritsFrom>
        </Behavior>
        <Behavior>
            <Class>behaviors.XYMove</Class>
            <Args>
                <Id>xymove</Id>
                <XStep>1</XStep>
                <YStep>1</YStep>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.RestrictLocation</Class>
            <Args>
                <Id>xbounce</Id>
                <Action>{val}*-1</Action>
                <ParamName>XStep</ParamName>
                <LocationRestriction>{x}&lt;2 or {x}&gt;48</LocationRestriction>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.RestrictLocation</Class>
            <Args>
                <Id>ybounce</Id>
                <Action>{val}*-1</Action>
                <ParamName>YStep</ParamName>
                <LocationRestriction>{y}&lt;2 or {y}&gt;24</LocationRestriction>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.LocationMask</Class>
            <Args>
                <Id>stripsonly</Id>
                <Location>ts.all ls.all rs.all bs.all</Location>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.LocationMask</Class>
            <Args>
                <Id>wordsonly</Id>
                <Location>wt.all cl.all c5.all</Location>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>movebounce</Id>
                <ChainedBehaviors>
                    <Id>xymove</Id>
                    <Id>ybounce</Id>
                    <Id>xbounce</Id>
                    <Id>longrecursivedecay</Id>
                </ChainedBehaviors>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.TimeSwitch</Class>
            <Args>
                <Id>main</Id>
                <Inputs>
                    <Id>centerleft</Id>
                    <Id>center</Id>
                </Inputs>
                <TimeMap>{'scanningbars':10,'runcolordecay':10,'expandingcircles':10}</TimeMap>
                <InputMap>{'scanningbars':'centerleft', 'runcolordecay':'center',\
                    'expandingcircles':'center'}</InputMap>
                <RenderToScreen>True</RenderToScreen>
            </Args>
        </Behavior>
       <Behavior>
            <Class>behaviors.DebugBehavior</Class>
            <Args>
                <Id>debug</Id>
                <z-index>0</z-index>
                <Inputs>
                    <Id>pygamekey</Id>
                    <Id>udp</Id>
                </Inputs>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.AllPixels</Class>
            <Args>
                <Id>square</Id>
                <Width>20</Width>
            </Args>
        </Behavior>
        <Behavior Id="recursivedecay" InitialResponseCount="50">
            <InheritsFrom>behaviors/LoopAndDie.xml</InheritsFrom>
        </Behavior>
        <Behavior Id="longrecursivedecay" InitialResponseCount="80">
            <InheritsFrom>behaviors/LoopAndDie.xml</InheritsFrom>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>runcolordecay</Id>
                <ChainedBehaviors>
                    <Id>colorchange</Id>
                    <Id>mover</Id>
                    <!--<Id>square</Id>-->
                    <Id>decay</Id>
                </ChainedBehaviors>
                <RecursiveHooks>{'mover':'movebounce'}</RecursiveHooks>
                <RenderToScreen>False</RenderToScreen>
                <Mapper>gaussmap</Mapper>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.ResponseMover</Class>
            <Args>
                <Id>mover</Id>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.ColorShift</Class>
            <Args>
                <Id>colorshift</Id>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.Oval</Class>
            <Args>
                <Id>innercircle</Id>
                <Radius>0</Radius>
                <Outside>True</Outside>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.Oval</Class>
            <Args>
                <Id>outercircle</Id>
                <Radius>3</Radius>
                <Combine>True</Combine>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.ModifyParam</Class>
            <Args>
                <Id>incrinner</Id>
                <ParamOp>{val}+.6</ParamOp>
                <ParamName>innercircleRadius</ParamName>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.ModifyParam</Class>
            <Args>
                <Id>incrouter</Id>
                <ParamOp>{val}+.6</ParamOp>
                <ParamName>outercircleRadius</ParamName>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>circle_expand</Id>
                <ChainedBehaviors>
                    <Id>innercircle</Id>
                    <Id>outercircle</Id>
                    <Id>incrinner</Id>
                    <Id>incrouter</Id>
                    <Id>recursivedecay</Id>
                </ChainedBehaviors>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>coloredframe</Id>
                <Inputs>
                    <Id>centeronce</Id>
                </Inputs>
                <ChainedBehaviors>
                    <Id>redcolor</Id>
                    <Id>square</Id>
                    <Id>mover</Id>
                    <Id>singleframe</Id>
                    <Id>stripsonly</Id>
                </ChainedBehaviors>
                <RecursiveHooks>{'mover':'colorshift'}</RecursiveHooks>
                <RenderToScreen>True</RenderToScreen>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>expandingcircles</Id>
                <ChainedBehaviors>
                    <Id>colorchange</Id>
                    <Id>mover</Id>
                    <Id>decay</Id>
                    <!--Id>singleframe</Id-->
                </ChainedBehaviors>
                <RecursiveHooks>{'mover':'circle_expand'}</RecursiveHooks>
            </Args>
        </Behavior>
    </BehaviorConfiguration>
</LightInstallation>