if((on[0]&&prev_off[0])&&(on[1]&&prev_off[1]))/*if both channels have newly detected as active (possibility of preceding), select channel by peakness Q[] of POC */
{
*itd=(Q[0]>Q[1])?(float)itdLR[0]:(float)itdLR[1];
}
elseif((on[0]&&prev_off[0])&&(Q[0]>(Q[1]-0.1)))
elseif((on[0]&&prev_off[0])&&(Q[0]>(Q[1]-0.1)))/* if channel 0 becomes active, select channel 0*/