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
RecordingManager Class Reference

Recording manager. More...

#include <recordingmanager.h>

+ Inheritance diagram for RecordingManager:
+ Collaboration diagram for RecordingManager:

Public Member Functions

 RecordingManager (AudioRecorderAdapter *audioRecorder)
 
void init ()
 
void exit ()
 
- Public Member Functions inherited from MessageListener
 MessageListener (bool defaultActivation=true)
 
virtual ~MessageListener ()
 
bool isMessageListenerActive () const
 
void activateMessageListener ()
 
void deactivateMessageListener ()
 

Private Member Functions

virtual void handleMessage (MessagePtr m)
 Listen to messages and take action accordingly. More...
 
void updateStroboscopicFrequencies ()
 Update the stroboscopic frequencies. More...
 

Private Attributes

AudioRecorderAdaptermAudioRecorder
 Pointer to the audio device. More...
 
const PianomPiano
 Poitner to the actual piano. More...
 
OperationMode mOperationMode
 Current operation mode. More...
 
const KeymSelectedKey
 Currently selected key. More...
 
int mKeyNumberOfA4
 Total number of keys. More...
 
int mNumberOfSelectedKey
 Number of actually selected key. More...
 
const double FPS_FAST = 30
 Stroboscopic fps during recording. More...
 
const double FPS_SLOW = 15
 Stroboscopic fps during non-recording. More...
 

Detailed Description

Recording manager.

The recording manager, whose instance is held by core, manages the messages controlling the recording process. It also takes care of the stroboscopic tuning indicator.

Definition at line 38 of file recordingmanager.h.

Constructor & Destructor Documentation

RecordingManager::RecordingManager ( AudioRecorderAdapter audioRecorder)

Definition at line 30 of file recordingmanager.cpp.

+ Here is the call graph for this function:

Member Function Documentation

void RecordingManager::exit ( )
inline

Definition at line 44 of file recordingmanager.h.

void RecordingManager::handleMessage ( MessagePtr  m)
privatevirtual

Listen to messages and take action accordingly.

Parameters
m: The incoming message

Implements MessageListener.

Definition at line 51 of file recordingmanager.cpp.

+ Here is the call graph for this function:

void RecordingManager::init ( )
inline

Definition at line 43 of file recordingmanager.h.

void RecordingManager::updateStroboscopicFrequencies ( )
private

Update the stroboscopic frequencies.

This function transmits a vector of frequencies of the lowest partials of the selected key to the stroboscope. The function determines how many partials are shown in the stroboscope.

Definition at line 137 of file recordingmanager.cpp.

+ Here is the call graph for this function:

Member Data Documentation

const double RecordingManager::FPS_FAST = 30
private

Stroboscopic fps during recording.

Definition at line 56 of file recordingmanager.h.

const double RecordingManager::FPS_SLOW = 15
private

Stroboscopic fps during non-recording.

Definition at line 57 of file recordingmanager.h.

AudioRecorderAdapter* RecordingManager::mAudioRecorder
private

Pointer to the audio device.

Definition at line 49 of file recordingmanager.h.

int RecordingManager::mKeyNumberOfA4
private

Total number of keys.

Definition at line 53 of file recordingmanager.h.

int RecordingManager::mNumberOfSelectedKey
private

Number of actually selected key.

Definition at line 54 of file recordingmanager.h.

OperationMode RecordingManager::mOperationMode
private

Current operation mode.

Definition at line 51 of file recordingmanager.h.

const Piano* RecordingManager::mPiano
private

Poitner to the actual piano.

Definition at line 50 of file recordingmanager.h.

const Key* RecordingManager::mSelectedKey
private

Currently selected key.

Definition at line 52 of file recordingmanager.h.


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