Ok, I’m going to code this up in Java (at least there its clearer whats happening when). I just need a little guidance on the math for the phase accumulation.
So I have the code built to maintain a record of the current fft vector of amplitude, phase values and phase differences (output from framedelta~).
When the toggle is off (0 sent to the object) the amplitude and phase values pass through unchanged and are stored in the object’s buffer.
When the toggle is on the object waits until an index of 0 is reached (start of new vector) and outputs what was previously written to the object’s buffer.
The phase values are computed as follows: