Internal soundgen function.
isCentral.localMax(x, threshold)
x
input vector
threshold
threshold for peak detection
soundgen:::isCentral.localMax(c(1,1,3,2,1), 2.5)