Entropy Piano Tuner  1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RecorderLevel Class Referenceabstract

Adapter for displaying the recording level (VU meter) More...

#include <recorderlevel.h>

+ Inheritance diagram for RecorderLevel:
+ Collaboration diagram for RecorderLevel:

Public Member Functions

 RecorderLevel ()
 
 ~RecorderLevel ()
 
virtual void handleMessage (MessagePtr m) override
 Message handler. More...
 
- Public Member Functions inherited from MessageListener
 MessageListener (bool defaultActivation=true)
 
virtual ~MessageListener ()
 
bool isMessageListenerActive () const
 
void activateMessageListener ()
 
void deactivateMessageListener ()
 

Protected Member Functions

virtual void levelChanged (double value)=0
 Change the shown level. More...
 

Detailed Description

Adapter for displaying the recording level (VU meter)

This adapter receives the messages to update the recording level (VU values) and communicates them to the GUI

Definition at line 38 of file recorderlevel.h.

Constructor & Destructor Documentation

RecorderLevel::RecorderLevel ( )
inline

Definition at line 41 of file recorderlevel.h.

RecorderLevel::~RecorderLevel ( )
inline

Definition at line 42 of file recorderlevel.h.

Member Function Documentation

void RecorderLevel::handleMessage ( MessagePtr  m)
overridevirtual

Message handler.

The message handler receives the incoming messages and listens for the message that the energy (VU level) has changed. If so, it loads the message and checks whether this concerns the input level. Subsequently, the virtual function levelChanged is called, which in the GUI implementation takes the appropriate action.

Parameters
m: Incoming message.

Implements MessageListener.

Definition at line 39 of file recorderlevel.cpp.

+ Here is the call graph for this function:

virtual void RecorderLevel::levelChanged ( double  value)
protectedpure virtual

Change the shown level.

Parameters
value: Level value between 0 and 1.

Implemented in VolumeControlLevel.


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