Showing the changes to TestPlugin/Source/MyTest.cpp (1 of 2 files). Show all
Unified · Split
| @@ -103,11 +103,11 @@ float LEAFTest_tick (float input) · 102 unmodified lines | ||
| 103 | 103 | if (tPitchDetector_getPeriodicity(&detector) > 0.0) |
| 104 | 104 | { |
| 105 | 105 | float altFreq = tPitchDetector_getFrequency(&detector); |
| 106 | − if (fabsf(lastFreq - freq) > fabsf(lastFreq - altFreq)) | |
| 106 | +// if (fabsf(lastFreq - freq) > fabsf(lastFreq - altFreq)) | |
| 107 | 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 | 112 | tMBTriangle_setFreq(&btri, freq); |
| 113 | 113 | } |