Hi guys,
So I have been implementing a zero crossing rate detector in Pd. I am currently turning the signal into a square wave (-1s and 1s) and working out the difference between successive samples, then using [fexpr~] in order to check whether this difference is more than 0 in which I turn the block of 64 samples into a block of 0s and 1s (1 means a zero crossing).
All I have to do now is to sum the 1s in that block, but I'm having problems in doing that as I am new to Pd, and I don't really want to use [fexpr~] again as it's computationally intensive.
Has anyone got a solution for this?

Note that the [tab_sum] function is behaving weirdly, it loads fine when I open the help for iem/tab_sum then paste it into my abstraction, but when I close Pd and reopen it, it goes red saying "couldn't create...", to which I made a post about but no one seems to know a fix.
