I’m trying to think of a design for a kind of zero-crossing instrument, which detects when a recorded a-rate signal crosses its horizontal axis or 0 point. Each time that happens, I need an oscillator to switch value from 1 to 0 (or 0 to 1, if already at 1).
To achieve this, I was thinking of using the rms opcode to track input signal amplitude, and have some sort of conditional block with a built-in flagging system to get the output signal to switch when the rms value is at or close to 0; however, I would theoretically need to track at a-rate, and that doesn’t seem possible with rms.
Another design idea was to write the signal to an f-table and ‘find’ the 0 (or close to 0) values through table lookup, then apply those results to my output signal (i.e. get it to switch if a 0 or close to 0 value is detected).
Has anyone attempted this before, and if so, any advice or suggestions? Perhaps I’m missing the barn door in front of me, and there’s a brutally simple way of doing it…
Any help greatly appreciated.