... df * 5 } ); // Threshold and trigger. onsets = if(odf > thresh, 1, 0); onsets = Trig1.kr(onsets, mingap); onsets = Trig1.kr(onsets, 0); } // End of func to return } // End .kr } // End class