Entropy Piano Tuner
1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
|
QProgressBar to display the current input level. More...
#include <volumecontrollevel.h>
Public Member Functions | |
VolumeControlLevel (QWidget *parent) | |
Default constructor. More... | |
virtual | ~VolumeControlLevel () |
Empty virtual destructor. More... | |
Public Member Functions inherited from RecorderLevel | |
RecorderLevel () | |
~RecorderLevel () | |
virtual void | handleMessage (MessagePtr m) override |
Message handler. More... | |
Protected Member Functions | |
void | levelChanged (double value) override |
Function that is called when the level has changed. More... | |
Private Slots | |
void | updateValue () |
Update the displayed value with the mValueBuffer. More... | |
Private Attributes | |
QTimer | mUpdateTimer |
The timer that will handle the update of the QProgressBar. More... | |
double | mValueBuffer |
The buffered value. More... | |
QProgressBar to display the current input level.
It inheriated RecorderLevel to listen for the levelChanged message. Since it can happen that the rate of levelChanged(float) calls is very high, there is a timer that only will update the value with 24 fps.
Definition at line 34 of file volumecontrollevel.h.
|
explicit |
Default constructor.
parent | : The parent widget |
Definition at line 25 of file volumecontrollevel.cpp.
|
virtual |
Empty virtual destructor.
Definition at line 35 of file volumecontrollevel.cpp.
|
overrideprotectedvirtual |
Function that is called when the level has changed.
value | : The new value in [0, 1] |
This will change the value of mValueBuffer.
Implements RecorderLevel.
Definition at line 41 of file volumecontrollevel.cpp.
|
privateslot |
Update the displayed value with the mValueBuffer.
This function will be called by mUpdateTimer with 24 fps.
Definition at line 46 of file volumecontrollevel.cpp.
|
private |
The timer that will handle the update of the QProgressBar.
Definition at line 72 of file volumecontrollevel.h.
|
private |
The buffered value.
It will be displayed by updateValue() and set by levelChanged(float).
Definition at line 79 of file volumecontrollevel.h.