Entropy Piano Tuner
1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
|
CORE : Class managing the core. More...
#include <core.h>
Public Member Functions | |
Core (ProjectManagerAdapter *projectManager, AudioRecorderAdapter *recorderAdapter, AudioPlayerAdapter *playerAdapter, Log *log=new Log()) | |
Core constructor. More... | |
~Core () | |
Core destructor, calls stop and exit. More... | |
void | init (CoreInitialisationAdapter *initAdapter) |
Core initialization. More... | |
void | exit () |
Thus function calls exit() of all components that were initialized. More... | |
void | start () |
Start the core. More... | |
void | stop () |
Stop the core. More... | |
bool | isInitialized () const |
Function telling wether the core is already initialized. More... | |
ProjectManagerAdapter * | getProjectManager () |
AudioRecorderAdapter * | getAudioRecorder () |
AudioPlayerAdapter * | getAudioPlayer () |
PianoManager * | getPianoManager () |
MidiAdapter * | getMidiInterface () |
Private Attributes | |
bool | mInitialized |
std::unique_ptr < ProjectManagerAdapter > | mProjectManager |
AudioRecorderAdapter * | mRecorderAdapter |
AudioPlayerAdapter * | mPlayerAdapter |
SoundGenerator | mSoundGenerator |
RecordingManager | mRecordingManager |
SignalAnalyzer | mSignalAnalyzer |
PianoManager | mPianoManager |
std::shared_ptr< MidiAdapter > | mMidi |
CORE : Class managing the core.
The core comprises all components of the EPT which are independent of the GUI. The GUI is connected by impementing a number of virtual adapters.
Core::Core | ( | ProjectManagerAdapter * | projectManager, |
AudioRecorderAdapter * | recorderAdapter, | ||
AudioPlayerAdapter * | playerAdapter, | ||
Log * | log = new Log() |
||
) |
Core::~Core | ( | ) |
void Core::exit | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Core::init | ( | CoreInitialisationAdapter * | initAdapter | ) |
Core initialization.
On startup the core components have to be initialized by calling this function. Since the user has should see that something happens, a message box with a progress bar will be shown. The handling of this message box is carried out by the initialization adapter passed here as a pointer.
initAdapter | : Pointer to the initialization adapter |
Definition at line 95 of file core.cpp.
|
inline |
void Core::start | ( | ) |
void Core::stop | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |