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

Method setLightRGBSmooth

src/MotionMTR.cpp:177–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 }
176
177 void setLightRGBSmooth(int lightId, const ProcessArgs& args, float R, float G, float B) {
178 // inverse time constant for LED smoothing
179 const float lambda = 10.f * updateLEDRate;
180 lights[lightId + 0].setBrightnessSmooth(R, args.sampleTime, lambda);
181 lights[lightId + 1].setBrightnessSmooth(G, args.sampleTime, lambda);
182 lights[lightId + 2].setBrightnessSmooth(B, args.sampleTime, lambda);
183 }
184
185 // hue: 0 - 360
186 void setLightHSBSmooth(int lightId, const ProcessArgs& args, float H, float S, float V) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected