VCV Rack API v2
Loading...
Searching...
No Matches
rack::dsp::VuMeter Struct Reference

Deprecated. More...

#include <vumeter.hpp>

Public Member Functions

void setValue (float v)
 Value should be scaled so that 1.0 is clipping.
 
float getBrightness (int i)
 Returns the brightness of the light indexed by i.
 

Public Attributes

float dBInterval = 3.0
 Decibel level difference between adjacent meter lights.
 
float dBScaled
 

Detailed Description

Deprecated.

Use VuMeter2 instead.

Member Function Documentation

◆ setValue()

void rack::dsp::VuMeter::setValue ( float v)
inline

Value should be scaled so that 1.0 is clipping.

◆ getBrightness()

float rack::dsp::VuMeter::getBrightness ( int i)
inline

Returns the brightness of the light indexed by i.

Light 0 is a clip light (red) which is either on or off. All others are smooth lights which are fully bright at -dBInterval*i and higher, and fully off at -dBInterval*(i-1).

Member Data Documentation

◆ dBInterval

float rack::dsp::VuMeter::dBInterval = 3.0

Decibel level difference between adjacent meter lights.

◆ dBScaled

float rack::dsp::VuMeter::dBScaled

The documentation for this struct was generated from the following file: