28        if (brightness < 
value) {
 
   30            value += (brightness - 
value) * lambda * deltaTime;
 
 
 
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition common.hpp:26
 
High-performance classes handling modules and voltage signals between them.
Definition asset.hpp:13
 
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
 
float getBrightness()
Definition Light.hpp:20
 
DEPRECATED void setBrightnessSmooth(float brightness, int frames=1)
Use setBrightnessSmooth(brightness, sampleTime * frames) instead.
Definition Light.hpp:43
 
void setBrightnessSmooth(float brightness, float deltaTime, float lambda=30.f)
Emulates light decay with slow fall but immediate rise.
Definition Light.hpp:27
 
float value
The square of the brightness.
Definition Light.hpp:13
 
void setSmoothBrightness(float brightness, float deltaTime)
DEPRECATED Alias for setBrightnessSmooth().
Definition Light.hpp:38
 
void setBrightness(float brightness)
Sets the brightness immediately with no light decay.
Definition Light.hpp:16