diff options
author | rcoh <rcoh@mit.edu> | 2011-02-13 03:57:56 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-02-13 03:57:56 -0500 |
commit | f6dd5ab92949843d2fb163e2d84f19e824a291dc (patch) | |
tree | ea305104129abd1d4f8233590e2a41070d2f3cfb /config | |
parent | db19c9731c7bed3716a387a0db5b56dd3ba72104 (diff) |
Added OSC (phone controlled) behavior to the C5 Sign
Diffstat (limited to 'config')
-rw-r--r-- | config/C5Sign.xml | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/config/C5Sign.xml b/config/C5Sign.xml index 65a45bc..8c2871e 100644 --- a/config/C5Sign.xml +++ b/config/C5Sign.xml @@ -22,7 +22,7 @@ <Id>gaussmap</Id> <CutoffDist>30</CutoffDist> <MinWeight>0.1</MinWeight> - <Width>10</Width> + <Width>7</Width> <Height>1</Height> </Args> </PixelMapper> @@ -45,6 +45,14 @@ </Args> </InputElement> <InputElement> + <Class>inputs.OSCInput</Class> + <Args> + <Id>osc</Id> + <Port>1234</Port> + <RefreshInterval>10</RefreshInterval> + </Args> + </InputElement> + <InputElement> <Class>inputs.PygameInput</Class> <Args> <Id>pygamekey</Id> @@ -73,6 +81,12 @@ </InputElement> </InputConfiguration> <BehaviorConfiguration> + <Behavior> + <Args> + <Id>touchosc</Id> + </Args> + <Class>behaviors.TouchOSC</Class> + </Behavior> <Behavior Id="colorchange"> <InheritsFrom>behaviors/RandomColor.xml</InheritsFrom> <Args> @@ -82,6 +96,21 @@ </ColorList> </Args> </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>True</RenderToScreen> + </Args> + </Behavior> <Behavior Id="decay"> <InheritsFrom>behaviors/PixelDecay.xml</InheritsFrom> </Behavior> @@ -98,8 +127,8 @@ <Class>behaviors.XYMove</Class> <Args> <Id>xymove</Id> - <XStep>5</XStep> - <YStep>2</YStep> + <XStep>1</XStep> + <YStep>1</YStep> </Args> </Behavior> <Behavior> @@ -108,7 +137,7 @@ <Id>xbounce</Id> <Action>{val}*-1</Action> <ParamName>XStep</ParamName> - <LocationRestriction>{x}<0 or {x}>200</LocationRestriction> + <LocationRestriction>{x}<2 or {x}>48</LocationRestriction> </Args> </Behavior> <Behavior> @@ -117,7 +146,7 @@ <Id>ybounce</Id> <Action>{val}*-1</Action> <ParamName>YStep</ParamName> - <LocationRestriction>{y}<0 or {y}>100</LocationRestriction> + <LocationRestriction>{y}<2 or {y}>24</LocationRestriction> </Args> </Behavior> <Behavior> @@ -126,7 +155,7 @@ <Id>movebounce</Id> <ChainedBehaviors> <Id>xymove</Id> - <Id>colorshift</Id> + <!--Id>colorshift</Id--> <Id>ybounce</Id> <Id>xbounce</Id> </ChainedBehaviors> @@ -175,12 +204,11 @@ <ChainedBehaviors> <Id>colorchange</Id> <Id>mover</Id> - <Id>square</Id> <Id>decay</Id> </ChainedBehaviors> <RecursiveHooks>{'mover':'movebounce'}</RecursiveHooks> <RenderToScreen>True</RenderToScreen> - <!--Mapper>gaussmap</Mapper--> + <Mapper>gaussmap</Mapper> </Args> </Behavior> <Behavior> |