ref: 45af5ea9126eb580fcf4916bed29d02995c745b9
parent: 2e55e2007f1d88321d43b776995c4911645fdcea
author: Matthew Wang <mjw7@princeton.edu>
date: Wed Aug 5 05:49:33 EDT 2020
minor
--- a/TestPlugin/Source/MyTest.cpp
+++ b/TestPlugin/Source/MyTest.cpp
@@ -103,11 +103,11 @@
if (tPitchDetector_getPeriodicity(&detector) > 0.0)
{
float altFreq = tPitchDetector_getFrequency(&detector);
- if (fabsf(lastFreq - freq) > fabsf(lastFreq - altFreq))
+// if (fabsf(lastFreq - freq) > fabsf(lastFreq - altFreq))
freq = altFreq;
}
- if (tZeroCrossingCounter_tick(&zc, input) < 0.05 && freq > 0.0f)
+// if (tZeroCrossingCounter_tick(&zc, input) < 0.05 && freq > 0.0f)
{
tMBTriangle_setFreq(&btri, freq);
}
--- a/leaf/Src/leaf-analysis.c
+++ b/leaf/Src/leaf-analysis.c
@@ -90,7 +90,7 @@
void tZeroCrossingCounter_initToPool (tZeroCrossingCounter* const zc, int maxWindowSize, tMempool* const mp)
{
_tMempool* m = *mp;
- _tZeroCrossingCounter* z = *zc = (_tZeroCrossingCounter*) mpool_alloc(sizeof(_tZeroCrossing), m);
+ _tZeroCrossingCounter* z = *zc = (_tZeroCrossingCounter*) mpool_alloc(sizeof(_tZeroCrossingCounter), m);
z->mempool = m;
z->count = 0;