61 #include <QMidiMessage> 65 #include "../../application/modules/system/threadbase.h" 101 void loadFile (QString filename,
bool autostart=
false);
137 #endif // MIDIPLAYER_H bool mPlayAgainAfterSuspend
Flag for playing after resume.
void resume()
Resume from suspend mode.
Universal base class for threaded modules.
void play()
Start or resume playing.
void reportError(QString msg)
Report an error.
void rewind()
Rewind: Move the iterator of the event list to the beginning.
void receiveTempoData(bool smpte, double parameter)
Receive tempo data from the parser.
void setDisplayedMidiFilename(QVariant filename)
bool mTimerActive
Flag indicating that player is waiting for timeout.
double mOverallTempoFactor
Time scaling factor (1 = 100% = recorded tempo)
void signalError(QVariant msg)
void setTempo(double factor)
Set tempo scale factor.
bool isPlaying() const
Find out whether the player is playing.
MidiPlayerEventList mEventList
void signalPlayingStatusChanged(QVariant playing)
quint64 mDeltaTicks
Elapsed time units (ticks) since the last event.
void loadFile(QString filename, bool autostart=false)
Load a midi file (*.mid) from disk.
bool mRepeatMode
Mode indicating that file shall be repeated.
void loadUrl(QString url)
Load a midi file (*.mid) from disk (URL-Version)
bool mCurrentlyPlaying
Flag whether player is actually playing.
void suspend()
Suspend (stop playing, thread idle)
void setRepeatMode(bool on)
Switch repeat mode on and off.
void helperSignalToReadMidiFile(QString filename, bool autostart)
void pause()
Pause: Interrupt playing.
void setTempoFactor(double tempo)
Modify the tempo scale factor.
void signalProgressInPercent(QVariant percent)
void midiTimeout()
Timer midiTimeout.
double mMillisecondsPerTick
Calculated number of milliseconds per tick.
void allNotesOff()
Turn all notes off.
double mAccumulatedTime
Accumulated time since last progress signal.
void togglePlayPause()
Toggle between play and pause.
double mTicksPerQuarterNote
Calculated number of ticks per quarter note.
void setMidiProgress(double percent)
Set progress in pecent manually.
bool stop()
Stop the player.
void signalMidiEvent(QMidiMessage event)
Class managing the EventList in the MidiPlayer.
void readAndParseMidiFile(QString filename, bool autostart)
Read and parse a Midi file.