VUMeter Class Reference

A widget holding level indicators, 'over' LEDs, and a scale. More...

List of all members.

Public Member Functions

 VUMeter (QWidget *parent, AudioBus *bus)
void reset ()

Static Public Member Functions

static QVector< float > * vumeter_lut ()

Protected Member Functions

void resizeEvent (QResizeEvent *e)
void paintEvent (QPaintEvent *e)
QSize sizeHint () const
QSize minimumSizeHint () const


Detailed Description

A widget holding level indicators, 'over' LEDs, and a scale.

The VUMeter class is a widget that holds one or more level indicators (VUMeterLevel), one or more 'over' LEDs (VUMeterOverLed), and one scale (VUMeterRuler). Usually one VUMeter per track is created, which contains one level indicator and 'over' LED per audio channel (2 for stereo) and one scale. The name of the track is shown below the level indicators.

The scale is hidden automatically if the width of the widget becomes too narrow.

All VUMeter related classes are designed to be arranged in a QGridLayout so as to resize correctly.


Member Function Documentation

QVector< float > * VUMeter::vumeter_lut (  )  [inline, static]

This function returns a pointer to a lookup table mapping dB values to level meter deflection in percent. The transformation is compliant with the IEC 60268-18 standard for digital level meters.

The lookup table covers a range from +6 dB to -70 dB with a resolution of 0.2 dB, starting with the highest value. +6.0 dB corresponds to 115% deflection, 0.0 dB to 100%, -70.0 dB close to 0%.

Returns:
Pointer to the lookup table, which is of format QVector<float>


The documentation for this class was generated from the following files:

Generated on Sun Mar 8 12:44:05 2009 for traverso by  doxygen 1.5.5