Hey gang,
I came up with a clever way to ensure that you needn't worry about occasional drop-outs on your m-log. Since Port pins 4-7 normally remain fixed at "1" we can use Supercollider's 'and:' syntax to help us out.
First, in a task, add lines something like this:
~non0 = ~muio.getValue("port1","4");
~non1 = ~muio.getValue("port1","5");
~non2 = ~muio.getValue("port1","6");
~non3 = ~muio.getValue("port1","7");
Then use the 'and:' in an argument like this:
if( (~switch1==0) and:(~non0 ==1) and:(~non1 ==1) and:(~non2 ==1) and: (~non3 ==1), {x.play});
See, even if the muio suffers from a drop-out (ie, all Pins flash to zero), 'x' will not be activated by accident. 'x' will only be activated when switch1 is actually depressed.