Thanks! That seems to work. All blocks seem to work, except the red one.
I'm getting some kind of type conversion error, which is weird since the input and outputs are the same type.
xpatch.cpp:201:26: error: incompatible types in assignment of 'const int32_t* {aka const long int*}' to 'int32buffer {aka long int [16]}'
default: outlet_out5 = inlet_in; break;
This is the XML code I've used, code in the CDATA is the same as in the blue, green and yellow objects:
<obj.normal id="omux 6" sha="01d657d22878164f052a21f189f0f5430e9ba411">
<sDescription>output multiplexer. Output is o1 when s < 1, i[i] when....</sDescription>
<author>Jan Vantomme</author>
<license>BSD</license>
<inlets>
<frac32buffer name="in" description="input 0"/>
<int32 class="axoloti.inlets.InletInt32Pos" name="s" description="select"/>
</inlets>
<outlets>
<frac32buffer name="out0" description="output 0" SumBuffer="false"/>
<frac32buffer name="out1" description="output 1" SumBuffer="false"/>
<frac32buffer name="out2" description="output 2" SumBuffer="false"/>
<frac32buffer name="out3" description="output 3" SumBuffer="false"/>
<frac32buffer name="out4" description="output 4" SumBuffer="false"/>
<frac32buffer name="out5" description="output 5" SumBuffer="false"/>
</outlets>
<displays/>
<params/>
<attribs/>
<code.krate><![CDATA[
switch ( %s% > 0 ? %s% : 0 ) {
case 0: %out0% = %in%; break;
case 1: %out1% = %in%; break;
case 2: %out2% = %in%; break;
case 3: %out3% = %in%; break;
case 4: %out4% = %in%; break;
case 5: %out5% = %in%; break;
default: %out5% = %in%; break;
}
]]></code.krate>
</obj.normal>