MCPcopy Create free account
hub / github.com/VCVRack/Befaco / process

Method process

src/Morphader.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25 void setSlew(float slew) { this->slew = slew; }
26 float process(float deltaTime, float in) {
27 if (in > out) {
28 out += slew * (in - out) * deltaTime;
29 if (out > in) {
30 out = in;
31 }
32 } else if (in < out) {
33 out += slew * (in - out) * deltaTime;
34 if (out < in) {
35 out = in;
36 }
37 }
38 return out;
39 }
40};
41
42struct Morphader : Module {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected