closes #9
pitch detection runs on known schedule
fixed erratic pitch detection on launch
This commit is contained in:
michalcourson
2025-11-09 11:16:59 -05:00
parent e89620df27
commit 3c6616d1ec
6 changed files with 177 additions and 174 deletions

View File

@ -45,11 +45,13 @@ void Helmholtz::iosamples(const t_float* in, t_float* out, int size)
int mask = framesize - 1;
int outindex = 0;
// call analysis function when it is time
if (!(timeindex & (framesize / overlap - 1))) analyzeframe();
while (size--)
{
// call analysis function when it is time
if (!(timeindex & (framesize / overlap - 1))) analyzeframe();
inputbuf[timeindex++] = *in++;
//out[outindex++] = processbuf[timeindex++];
timeindex &= mask;