Unified · Split
Binary file not shown.
Binary file not shown.
| @@ -609,7 +609,7 @@ static void snac_analyzeframe(tSNAC* const snac) · 608 unmodified lines | ||
| 609 | 609 | int n, tindex = s->timeindex; |
| 610 | 610 | int framesize = s->framesize; |
| 611 | 611 | int mask = framesize - 1; |
| 612 | − float norm = 1. / sqrt((float)(framesize * 2)); | |
| 612 | + float norm = 1.0f / sqrtf((float)(framesize * 2)); | |
| 613 | 613 | |
| 614 | 614 | float *inputbuf = s->inputbuf; |
| 615 | 615 | float *processbuf = s->processbuf; |
| @@ -1209,14 +1209,14 @@ float tRetune_getInputPeriod(tRetune* const rt) · 1208 unmodified lines | ||
| 1209 | 1209 | { |
| 1210 | 1210 | _tRetune* r = *rt; |
| 1211 | 1211 | |
| 1212 | − return r->inputPeriod; | |
| 1212 | + return (r->inputPeriod * leaf.invSampleRate); | |
| 1213 | 1213 | } |
| 1214 | 1214 | |
| 1215 | 1215 | float tRetune_getInputFreq(tRetune* const rt) |
| 1216 | 1216 | { |
| 1217 | 1217 | _tRetune* r = *rt; |
| 1218 | 1218 | |
| 1219 | − return 1.0f/r->inputPeriod; | |
| 1219 | + return 1.0f/(r->inputPeriod * leaf.invSampleRate); | |
| 1220 | 1220 | } |
| 1221 | 1221 | |
| 1222 | 1222 | //============================================================================================================ |