28 #include <QApplication> 29 #include <QQmlApplicationEngine> 31 #include <QTranslator> 65 void init (QQmlApplicationEngine &engine);
103 int buffersize,
int packetsize);
146 QString
shorten(
const QString &device,
int truncation=30)
const;
181 #endif // APPLICATION_H void stop()
Stop the application and its components.
void setInstrumentSelector(int index=0)
Set the content of the instrument selector.
void suspend()
Suspend the application This function suspends the application and all modules. This is essential e...
bool mMidiPlayerWasPlaying
Downloader * getDownloader()
void playStartupSound()
Play startup sound.
Class handling Midi events.
void setAudioSampleRates(QVariant list, QVariant index)
MidiMicrotonal mMidiMicrotonalConverter
bool loadMidiFile(QString filename)
Load a Midi file.
Class managing the generation of sound.
double mLastEmittedPitchProgression
void changeLocale(QString locale)
Slot: Change the language.
void hearExample(int number)
Private slot: Hear a Midi example.
void newInstrumentDownloaded(QString localpath)
Private slot: New instrument downloaded.
void setQmlSelectedInstrument(QVariant index)
void handleApplicationStates(Qt::ApplicationState state)
Function executed when application state changes (platform-dependent) Takes action if the state of th...
void startLoadingInstrument(QString name)
void showDownloadDialog()
Class handling Midi input and output.
void onAudioDevicesRemoved(QStringList list)
Private slot: An audio device has been removed (test)
void setAudioDeviceName(QVariant name)
void init(QQmlApplicationEngine &engine)
Initialization of the application.
void mobileError(QString msg)
void setQmlInstrumentNames(QVariant stringlist)
void start()
Start the application and its components.
void setQmlLocale(QVariant string)
void connectAudioDevice(bool active)
void onInputOutputStatusChanged()
I/O configuration changed, cancel converter inhibition.
Application(QApplication &app)
Application constructor.
QString shorten(const QString &device, int truncation=30) const
Shorten very long device names.
Create a data log of keypress and tuning events.
Class for playing a startup soundThis module manages to play a short audio file at startup (welcome j...
void emitAveragePitchProgression(double pitchProgression)
Emit the newly calculated average pitch progression.
QApplication * pApplication
void onConnectionSuccessfullyEstablished(bool success)
Private slot: on audio connection established.
void allInstrumentsDownloaded()
Private slot: All instrumenst downloaded.
QString mCurrentMidiDevice
Class managing the download of large files from a repository in the background.
void getSettingsFromQml()
Class describing an instrument.
QTranslator mQtTranslator
QStringList mAvailableMidiDevices
void disableScreenSaver()
void setSelectedExample(QVariant number)
This is the main class of the tuner module.
void loadInstrument(int selectedindex)
Private slot: Load an instrument.
Class for converting an ordinary Midi stream into a microtonal one.
TouchscreenKeyboard mKeyboard
void exit()
Exit from the application and all its components.
void resetAudioParameters()
Reset audio parameters.
bool mMidiAutomaticRecognition
void onAudioDevicesAdded(QStringList list)
Private slot: New audio device added (test)
void cancelLoading()
Private slot: Cancel the loading process.
SoundGenerator mSoundGenerator
void restartApplication()
Restart the application by force.
StartupSound mStartupSound
QStringList mAvailableMidiOutputDevices
void startDownload(bool forced=false)
Private slot: Start download.
void loadingFinished(bool success)
Private slot: Loading finished.
void selectAudioParameters(int devIndex, int srIndex, int buffersize, int packetsize)
Private slot: Select audio parameters.
void setAudioDeviceList(QVariant list, QVariant index)
void sendMobileMessage(QVariant string)
void installTranslations()
Install existing translations.
QStringList updateShownInstrumentNames()
Update the list of instruments in the Qml Combo box.
void onChangeOfAvailableAudioDevices(QStringList list)
Private slot: The list of availabel devices has changed (test)
Module for a file-open dialog.
QTranslator mAppTranslator
void setAudioBufferSizes(QVariant buffer, QVariant packet)
void onCurrentDeviceParametersChanged()
Private slot: on current audio device parameters changed.
void mobileMessage(QString msg)
Show error message on mobile phone while it is connected to a keyboard.
Base class for managing log messages.
void signalCircularGauge(QVariant progression)
void onClosedMidiLoopDetected()
Slot: Closed Midi feedback loop discovered, inhibit converter.