Unified · Split
| @@ -103,11 +103,11 @@ float LEAFTest_tick (float input) · 102 unmodified lines | |||
| 103 | if (tPitchDetector_getPeriodicity(&detector) > 0.0) | 103 | if (tPitchDetector_getPeriodicity(&detector) > 0.0) |
| 104 | { | 104 | { |
| 105 | float altFreq = tPitchDetector_getFrequency(&detector); | 105 | float altFreq = tPitchDetector_getFrequency(&detector); |
| 106 | if (fabsf(lastFreq - freq) > fabsf(lastFreq - altFreq)) | 106 | // if (fabsf(lastFreq - freq) > fabsf(lastFreq - altFreq)) |
| 107 | freq = altFreq; | 107 | freq = altFreq; |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | if (tZeroCrossingCounter_tick(&zc, input) < 0.05 && freq > 0.0f) | 110 | // if (tZeroCrossingCounter_tick(&zc, input) < 0.05 && freq > 0.0f) |
| 111 | { | 111 | { |
| 112 | tMBTriangle_setFreq(&btri, freq); | 112 | tMBTriangle_setFreq(&btri, freq); |
| 113 | } | 113 | } |
| @@ -90,7 +90,7 @@ void tZeroCrossingCounter_init (tZeroCrossingCounter* const zc, int m · 89 unmodified lines | |||
| 90 | void tZeroCrossingCounter_initToPool (tZeroCrossingCounter* const zc, int maxWindowSize, tMempool* const mp) | 90 | void tZeroCrossingCounter_initToPool (tZeroCrossingCounter* const zc, int maxWindowSize, tMempool* const mp) |
| 91 | { | 91 | { |
| 92 | _tMempool* m = *mp; | 92 | _tMempool* m = *mp; |
| 93 | _tZeroCrossingCounter* z = *zc = (_tZeroCrossingCounter*) mpool_alloc(sizeof(_tZeroCrossing), m); | 93 | _tZeroCrossingCounter* z = *zc = (_tZeroCrossingCounter*) mpool_alloc(sizeof(_tZeroCrossingCounter), m); |
| 94 | z->mempool = m; | 94 | z->mempool = m; |
| 95 | 95 | ||
| 96 | z->count = 0; | 96 | z->count = 0; |