I'm using [spike~] to calculate the frequency of a signal that's essentially a pulse train. Using [train~] as test input, I discovered that [spike~] starts outputting faulty values when the period drops below 3ms, and seriously messes up when the period is less than 1ms. The compressed test patch I'm using to test [spike~] is included below.
It looks like [spike~] wasn't intended to detect periods below a certain threshold.
Can anyone suggest another approach to detect frequency of a pulse train signal that ranges from 6 to 5000 Hz?