History

filling in docs, rename tZerocrossing to tZeroCrossingCounter

Matthew Wang committed 6 years ago

Commit 2e55e201 parent 327ba3d8 files · +173 −158Browse files

Showing the changes to TestPlugin/Source (1 of 8 files). Show all

Unified · Split

TestPlugin/Source/MyTest.cpp+3−3
@@ -37,7 +37,7 @@ tPitchDetector detector; · 36 unmodified lines
37 37
38tPeriodDetection pd;38tPeriodDetection pd;
39 39
40tZeroCrossing zc;40tZeroCrossingCounter zc;
41tEnvelopeFollower ef;41tEnvelopeFollower ef;
42 42
43float gain;43float gain;
@@ -69,7 +69,7 @@ void LEAFTest_init (float sampleRate, int blockSize) · 25 unmodified lines
69 69
70 tPeriodDetection_init(&pd, bufIn, bufOut, 4096, 1024);70 tPeriodDetection_init(&pd, bufIn, bufOut, 4096, 1024);
71 71
72 tZeroCrossing_init(&zc, 128);72 tZeroCrossingCounter_init(&zc, 128);
73 tEnvelopeFollower_init(&ef, 0.02f, 0.9999f);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 freq = altFreq;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 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