MCPcopy Create free account
hub / github.com/doldecomp/mkdd / incCounter

Method incCounter

libs/JSystem/JAudio/System/JASLfo.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void JASLfo::incCounter(f32 x) {
27 if (mCounter != 0) {
28 mCounter -= 1;
29 return;
30 }
31
32 _8 += x * (mPitch * 0.013888889f); // ~(1/72)
33 if (_8 >= 1.0f) {
34 _8 -= 1.0f;
35 }
36}
37
38void JASLfo::resetCounter() {
39 mCounter = mDelay;

Callers 2

updateDSPChannelMethod · 0.45
updateFreeRunMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected