mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-05 15:11:19 +00:00
a fix
This commit is contained in:
parent
60df7e26f4
commit
2ca5856800
1 changed files with 1 additions and 1 deletions
|
@ -540,7 +540,7 @@ void FurnaceGUI::drawChanOsc() {
|
|||
double dft[2];
|
||||
dft[0]=0.0;
|
||||
dft[1]=0.0;
|
||||
for (int j=needlePos-1-((displaySize+(int)waveLen)>>1), k=0; k<waveLen; j++, k++) {
|
||||
for (int j=needlePos-1-(displaySize>>1)-(int)waveLen, k=0; k<waveLen; j++, k++) {
|
||||
double one=((double)buf->data[j&0xffff]/32768.0);
|
||||
double two=(double)k*(-2.0*M_PI)/waveLen;
|
||||
dft[0]+=one*cos(two);
|
||||
|
|
Loading…
Reference in a new issue