History

minor

Matthew Wang committed 6 years ago

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

Showing the changes to TestPlugin/Source/MyTest.cpp (1 of 2 files). Show all

Unified · Split

TestPlugin/Source/MyTest.cpp+2−2
@@ -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 }

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