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
3737
3838 tPeriodDetection pd;
3939
40−tZeroCrossing zc;
40+tZeroCrossingCounter zc;
4141 tEnvelopeFollower ef;
4242
4343 float gain;
@@ -69,7 +69,7 @@ void LEAFTest_init (float sampleRate, int blockSize) · 25 unmodified lines
6969
7070 tPeriodDetection_init(&pd, bufIn, bufOut, 4096, 1024);
7171
72− tZeroCrossing_init(&zc, 128);
72+ tZeroCrossingCounter_init(&zc, 128);
7373 tEnvelopeFollower_init(&ef, 0.02f, 0.9999f);
7474 }
7575
@@ -107,7 +107,7 @@ float LEAFTest_tick (float input) · 31 unmodified lines
107107 freq = altFreq;
108108 }
109109
110− if (tZeroCrossing_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 }

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