blob: 33f52f008865177b86fb7d1cb98f32b49dc379b2 (
about) (
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
|
<objdefs>
<obj.normal id="sel b 32 pulse" uuid="8ad8a3dea3cedd0c5f731045ab90188e437c1260" sha="42339346cf951f33849d48f4292fa61903ccf4c8">
<sDescription>select one out of 32 booleans, chainable. Pulse output.</sDescription>
<author>Johannes Taelman</author>
<license>BSD</license>
<inlets>
<int32 name="in" description="in"/>
<bool32 name="def" description="default value"/>
</inlets>
<outlets>
<int32 name="chain" description="chain out (in-32)"/>
<bool32.pulse name="o" description="output"/>
</outlets>
<displays/>
<params>
<bin32 name="b32" noLabel="true"/>
</params>
<attribs/>
<code.declaration><![CDATA[int in_prev;
]]></code.declaration>
<code.init><![CDATA[in_prev = 0;
]]></code.init>
<code.krate><![CDATA[if ((inlet_in>=0)&&(inlet_in<32)) outlet_o=(in_prev!=inlet_in)&&(param_b32&(1<<inlet_in));
else outlet_o = inlet_def;
outlet_chain = inlet_in-32;
in_prev = inlet_in;
]]></code.krate>
</obj.normal>
</objdefs>
|