23 #include "../system/simplethreadhandler.h"
24 #include "../system/log.h"
25 #include "../piano/piano.h"
Class describing the piano keyboard, holding a collection of keys.
virtual void algorithmWorkerFunction()=0
virtual void workerFunction() overridefinal
Virtual worker function, executed within the new thread.
Class describing a single piano key.
static const int NumberOfBins
Total number of slots: 9 octaves.
Keyboard & mKeyboard
Reference to the keyboard.
Key::SpectrumType SpectrumType
const int mKeyNumberOfA4
Number of A4.
const AlgorithmFactoryDescription & mFactoryDescription
virtual void start()
Start the thread.
void showCalculationProgress(double fraction)
Transmit the current percentage of progress to the messaging system.
void updateTuningCurve(int keynumber, double frequency)
Keys & mKeys
Reference to the keys.
std::vector< double > SpectrumType
Type of a log-binned spectrum.
The Algorithm class is a basic abstract class for any algorithm.
Algorithm(const Piano &piano, const AlgorithmFactoryDescription &desciption)
Piano mPiano
Copy of the piano.
bool cancelThread() const
Cancel-flag getter method, thread-safe.
const size_t NumberOfBins
const int mNumberOfKeys
The number of keys.