24 #ifndef TUNINGINDICATORDRAWER_H
25 #define TUNINGINDICATORDRAWER_H
28 #include "../messages/messagelistener.h"
29 #include "../analyzers/signalanalyzer.h"
53 virtual void draw() override final;
54 virtual
void clear() override final;
71 #endif // TUNINGINDICATORDRAWER_H
virtual void clear() overridefinal
Clear the shared pointer to the FFT.
std::shared_ptr< Message > MessagePtr
Global type of a shared message pointer.
OperationMode
Operation mode of the tuner.
void toggleSpectralAndStroboscopeMode()
Toggle between spectral and stroboscopic operation mode.
Drawer for the tuning indicator.
virtual void draw() overridefinal
Main drawing function.
const Piano * mPiano
Pointer to the piano.
int mRecognizedKey
Number of recognized key, -1 if none.
int mSelectedKey
Number of selected key, -1 if none.
FrequencyDetectionResult mFrequencyDetectionResult
Copy of frequency detection result.
ComplexVector mDataVector
Data vector holding complex phases for stroboscope.
Abstract base class for implementations rendering graphics.
TuningIndicatorDrawer(GraphicsViewAdapter *graphics)
virtual void handleMessage(MessagePtr m) override
Message listener.
std::vector< std::complex< double >> ComplexVector
FFTDataPointer mFFTData
Pointer to the Fourier transform data.
std::shared_ptr< FFTData > FFTDataPointer
Shared pointer of FFTData.
std::shared_ptr< FrequencyDetectionResultStruct > FrequencyDetectionResult
Abstract base class for drawing 2d graphics.
OperationMode mOperationMode
Current operation mode of the EPT.
int mNumberOfKeys
Total number of keys.