24 #ifndef SOUNDGENERATOR_H 25 #define SOUNDGENERATOR_H 49 bool init()
override {
return true; }
110 #endif // SOUNDGENERATOR_H Universal base class for threaded modules.
Class managing the generation of sound.
Structure containing the data for a play-note request.
Voice - a set of scales, keeping the acoustic data of an instrument.
void setMaxPacketSize(int n)
void receiveTuningCorrections(QMap< int, double > corrections)
QList< Tone > * getTones()
void registerRequest(Request &request)
Register a single request to play a note in the queue.
size_t getMaxPacketSize()
void handleRequest(Request &request)
bool init() override
Virtual initialization function (no functionality here)
void setMaxPacketSize(int n)
Application * getApplication()
QVector< quint32 > mIncrements
Sound-generating module which plays the tones held by the SoundGenerator.
size_t getMaxPacketSize()
void setIncrement(int key, quint32 increment)
void registerAllNotesOff()
void timeout() override final
Private thread worker function.
Application * pApplication
void setSustainPedal(bool pressed)
void manageToneDynamics()
void setSoftPedal(bool pressed)
void suspend() override final
Mark the thread as suspended.
void forceImmediateProcessing()
quint32 getIncrement(int key)
void setSostenutoPedal(bool pressed)