|
Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
|
A meter processor for a single GUI element. More...
#include <src/gui/qquick/meter_processor.h>


Public Types | |
| enum class | MeterAlgorithm { Auto , DigitalPeak , TruePeak , RMS , K } |
| enum class | AudioValueFormat : std::uint8_t { Amplitude , DBFS , Fader } |
Public Member Functions | |
| MeterProcessor (QObject *parent=nullptr) | |
| dsp::Port * | port () const |
| void | setPort (dsp::Port *port) |
| int | channel () const |
| void | setChannel (int channel) |
| int | sampleRate () const |
| void | setSampleRate (int rate) |
| Q_SIGNAL void | sampleRateChanged () |
| dsp::PortObservationManager * | portObservationManager () const |
| void | setPortObservationManager (dsp::PortObservationManager *manager) |
| MeterAlgorithm | algorithm () const |
| void | setAlgorithm (MeterAlgorithm algo) |
| Q_SIGNAL void | algorithmChanged () |
| float | currentAmplitude () const |
| Q_SIGNAL void | currentAmplitudeChanged (float value) |
| float | peakAmplitude () const |
| Q_SIGNAL void | peakAmplitudeChanged (float value) |
| Q_INVOKABLE float | toDBFS (float amp) const |
| Q_INVOKABLE float | toFader (float amp) const |
Properties | |
| QML_ELEMENT zrythm::dsp::Port * | port |
| int | channel |
| int | sampleRate |
| zrythm::dsp::PortObservationManager * | portObservationManager |
| float | currentAmplitude |
| float | peakAmplitude |
| MeterAlgorithm | algorithm |
A meter processor for a single GUI element.
This class is responsible for processing the meter values for a single GUI element, such as a volume meter. It supports various meter algorithms, including digital peak, true peak, RMS, and K-meter.
The meter processor is associated with a port, which can be either an AudioPort or a MidiPort. The meter values are updated based on the data from the associated port.
The meter processor emits the valuesChanged signal whenever the meter values are updated, allowing the GUI to update the display accordingly.
Definition at line 31 of file meter_processor.h.
|
strong |
| Enumerator | |
|---|---|
| Amplitude | 0 to 2, amplitude. |
| DBFS | dbFS. |
| Fader | 0 to 1, suitable for drawing. |
Definition at line 57 of file meter_processor.h.
|
strong |
| Enumerator | |
|---|---|
| Auto | Use default algorithm for the port. |
| TruePeak |
|
Definition at line 45 of file meter_processor.h.
|
readwrite |
Definition at line 42 of file meter_processor.h.
|
readwrite |
Definition at line 36 of file meter_processor.h.
|
read |
Definition at line 40 of file meter_processor.h.
|
read |
Definition at line 41 of file meter_processor.h.
|
readwrite |
Definition at line 35 of file meter_processor.h.
|
readwrite |
Definition at line 39 of file meter_processor.h.
|
readwrite |
Definition at line 37 of file meter_processor.h.