Newbe needing help patching a 3 position switch/option

midi

#21

lokki/math/==remap should work


#22

actually haha i think the easiest solution is if you just edit your mux object:

  • click the little arrow top left of the mux object
  • select "embed as patch"
  • click the new "edit" button on the object
  • scroll to the "K-Rate Code" section
  • edit the code:

    switch(inlet_s>0?inlet_s:0){
    case 0: outlet_o= inlet_i0;break;
    case 1: outlet_o= inlet_i1;break;
    case 2: outlet_o= inlet_i2;break;
    default: outlet_o= inlet_i2;break;
    }

replace the case 0... to 0/64/127

and then you don't need any additional converion objects.


#23

Excellent this was what i was talking about above, can see this being useful in a few instances, I'll need it for something else, thanks.


#24

:smiley: yeh makes sense, sometimes the easiest options were staring you in the face all along


#25

I'll have another go at this for practice sake, thanks again weasel! :+1:t2: