62 LogI(
"Algorithm ResetToRecording carried out, copying the recorded pitches to the tuning curve.")
67 if (fA4 < 400 or fA4 > 480) fA4=440;
double getRecordedFrequency() const
Get recorded frequency.
The AlgorithmFactory class is a template class to be created with the actual Algorithm.
void msleep(double milliseconds)
Sleep function for staying idle.
const Keyboard & getKeyboard() const
static const AlgorithmFactory mSingleton
void updateTuningCurve(int keynumber, double frequency)
The Algorithm class is a basic abstract class for any algorithm.
int getKeyNumberOfA4() const
ResetToRecording(const Piano &piano, const AlgorithmFactoryDescription &description)
Constructor of the copy algorithm.
virtual void algorithmWorkerFunction() overridefinal
Worker function in which the computation thread is carried out.
Piano mPiano
Copy of the piano.
const Key & getKey(int i) const
const int mNumberOfKeys
The number of keys.