summaryrefslogtreecommitdiffstats
path: root/src/sound/MidiFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound/MidiFile.cpp')
-rw-r--r--src/sound/MidiFile.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sound/MidiFile.cpp b/src/sound/MidiFile.cpp
index 509b3d3..a2a4475 100644
--- a/src/sound/MidiFile.cpp
+++ b/src/sound/MidiFile.cpp
@@ -171,7 +171,7 @@ MidiFile::getMidiByte(ifstream* midiFile)
emit setProgress((int)(double(midiFile->tellg()) /
double(m_fileSize) * 20.0));
- kapp->tqprocessEvents(50);
+ kapp->processEvents(50);
}
return (MidiByte)byte;
@@ -249,7 +249,7 @@ MidiFile::getMidiBytes(ifstream* midiFile, unsigned long numberOfBytes)
if (bytesGot % 2000 == 0) {
emit setProgress((int)(double(midiFile->tellg()) /
double(m_fileSize) * 20.0));
- kapp->tqprocessEvents(50);
+ kapp->processEvents(50);
}
return stringRet;
@@ -524,7 +524,7 @@ MidiFile::parseTrack(ifstream* midiFile, TrackId &lastTrackNum)
TrackId metaTrack = lastTrackNum;
// Remember the last non-meta status byte (-1 if we haven't seen one)
- int runningtqStatus = -1;
+ int runningStatus = -1;
bool firstTrack = true;
@@ -550,11 +550,11 @@ MidiFile::parseTrack(ifstream* midiFile, TrackId &lastTrackNum)
midiByte = getMidiByte(midiFile);
if (!(midiByte & MIDI_STATUS_BYTE_MASK)) {
- if (runningtqStatus < 0) {
+ if (runningStatus < 0) {
throw (Exception("Running status used for first event in track"));
}
- eventCode = (MidiByte)runningtqStatus;
+ eventCode = (MidiByte)runningStatus;
data1 = midiByte;
#ifdef MIDI_DEBUG
@@ -603,7 +603,7 @@ MidiFile::parseTrack(ifstream* midiFile, TrackId &lastTrackNum)
} else // the rest
{
- runningtqStatus = eventCode;
+ runningStatus = eventCode;
MidiEvent *midiEvent;
@@ -842,7 +842,7 @@ MidiFile::convertToRosegarden(Composition &composition, ConversionType type)
// split over these tracks
emit setProgress(20 +
(int)((80.0 * double(i) / double(m_numberOfTracks))));
- kapp->tqprocessEvents(50);
+ kapp->processEvents(50);
// Convert the deltaTime to an absolute time since
// the start of the segment. The addTime method
@@ -2120,7 +2120,7 @@ MidiFile::writeTrack(std::ofstream* midiFile, TrackId trackNumber)
if (progressCount % 500 == 0) {
emit setProgress(progressCount * 100 / progressTotal);
- kapp->tqprocessEvents(500);
+ kapp->processEvents(500);
}
}