single character naming single numeric variable
in parent environment stating sampling frequency
nfr
single integer number of frames to search
...
other arguments to be swallowed
Details
Note this function is intended to be called from within
an apply call in segmentation, hence the
unusual syntax of defining the sampling frequency, freq
as an object in the parent frame