History

minor

Matthew Wang committed 6 years ago

Commit 45af5ea1 parent 2e55e202 files · +3 −3Browse files

Unified · Split

2 files
  1. TestPlugin/Source/MyTest.cpp +2 −2
  2. leaf/Src/leaf-analysis.c +1 −1
TestPlugin/Source/MyTest.cpp+2−2
@@ -103,11 +103,11 @@ float LEAFTest_tick (float input) · 102 unmodified lines
103103 if (tPitchDetector_getPeriodicity(&detector) > 0.0)
104104 {
105105 float altFreq = tPitchDetector_getFrequency(&detector);
106− if (fabsf(lastFreq - freq) > fabsf(lastFreq - altFreq))
106+// if (fabsf(lastFreq - freq) > fabsf(lastFreq - altFreq))
107107 freq = altFreq;
108108 }
109109
110− if (tZeroCrossingCounter_tick(&zc, input) < 0.05 && freq > 0.0f)
110+// if (tZeroCrossingCounter_tick(&zc, input) < 0.05 && freq > 0.0f)
111111 {
112112 tMBTriangle_setFreq(&btri, freq);
113113 }
leaf/Src/leaf-analysis.c+1−1
@@ -90,7 +90,7 @@ void tZeroCrossingCounter_init (tZeroCrossingCounter* const zc, int m · 89 unmodified lines
9090 void tZeroCrossingCounter_initToPool (tZeroCrossingCounter* const zc, int maxWindowSize, tMempool* const mp)
9191 {
9292 _tMempool* m = *mp;
93− _tZeroCrossingCounter* z = *zc = (_tZeroCrossingCounter*) mpool_alloc(sizeof(_tZeroCrossing), m);
93+ _tZeroCrossingCounter* z = *zc = (_tZeroCrossingCounter*) mpool_alloc(sizeof(_tZeroCrossingCounter), m);
9494 z->mempool = m;
9595
9696 z->count = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t