You have to rotate the phase of that frequency bin to match the sinusoid’s phase at the end of the buffer.
The equation for your phase offset after one block (hopsize) should be the following
dPhi = frequency / sampleRate * hopsize * 2*pi
You have to rotate the phase of that frequency bin to match the sinusoid’s phase at the end of the buffer.
The equation for your phase offset after one block (hopsize) should be the following
dPhi = frequency / sampleRate * hopsize * 2*pi