Entropy Piano Tuner
1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
|
Recording manager. More...
#include <recordingmanager.h>
Public Member Functions | |
RecordingManager (AudioRecorderAdapter *audioRecorder) | |
void | init () |
void | exit () |
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 | |
AudioRecorderAdapter * | mAudioRecorder |
Pointer to the audio device. More... | |
const Piano * | mPiano |
Poitner to the actual piano. More... | |
OperationMode | mOperationMode |
Current operation mode. More... | |
const Key * | mSelectedKey |
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... | |
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.
RecordingManager::RecordingManager | ( | AudioRecorderAdapter * | audioRecorder | ) |
|
inline |
Definition at line 44 of file recordingmanager.h.
|
privatevirtual |
Listen to messages and take action accordingly.
m | : The incoming message |
Implements MessageListener.
Definition at line 51 of file recordingmanager.cpp.
|
inline |
Definition at line 43 of file recordingmanager.h.
|
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.
|
private |
Stroboscopic fps during recording.
Definition at line 56 of file recordingmanager.h.
|
private |
Stroboscopic fps during non-recording.
Definition at line 57 of file recordingmanager.h.
|
private |
Pointer to the audio device.
Definition at line 49 of file recordingmanager.h.
|
private |
Total number of keys.
Definition at line 53 of file recordingmanager.h.
|
private |
Number of actually selected key.
Definition at line 54 of file recordingmanager.h.
|
private |
Current operation mode.
Definition at line 51 of file recordingmanager.h.
|
private |
Poitner to the actual piano.
Definition at line 50 of file recordingmanager.h.
|
private |
Currently selected key.
Definition at line 52 of file recordingmanager.h.