Showing the changes to TestPlugin/Source/MyTest.cpp (1 of 8 files). Show all
Unified · Split
| @@ -37,7 +37,7 @@ tPitchDetector detector; · 36 unmodified lines | ||
| 37 | 37 | |
| 38 | 38 | tPeriodDetection pd; |
| 39 | 39 | |
| 40 | −tZeroCrossing zc; | |
| 40 | +tZeroCrossingCounter zc; | |
| 41 | 41 | tEnvelopeFollower ef; |
| 42 | 42 | |
| 43 | 43 | float gain; |
| @@ -69,7 +69,7 @@ void LEAFTest_init (float sampleRate, int blockSize) · 25 unmodified lines | ||
| 69 | 69 | |
| 70 | 70 | tPeriodDetection_init(&pd, bufIn, bufOut, 4096, 1024); |
| 71 | 71 | |
| 72 | − tZeroCrossing_init(&zc, 128); | |
| 72 | + tZeroCrossingCounter_init(&zc, 128); | |
| 73 | 73 | tEnvelopeFollower_init(&ef, 0.02f, 0.9999f); |
| 74 | 74 | } |
| 75 | 75 | |
| @@ -107,7 +107,7 @@ float LEAFTest_tick (float input) · 31 unmodified lines | ||
| 107 | 107 | freq = altFreq; |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | − if (tZeroCrossing_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 | } |