summaryrefslogtreecommitdiffstats
path: root/src/gui/seqmanager/SequenceManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/seqmanager/SequenceManager.cpp')
-rw-r--r--src/gui/seqmanager/SequenceManager.cpp286
1 files changed, 143 insertions, 143 deletions
diff --git a/src/gui/seqmanager/SequenceManager.cpp b/src/gui/seqmanager/SequenceManager.cpp
index 4ebe945..1176e3a 100644
--- a/src/gui/seqmanager/SequenceManager.cpp
+++ b/src/gui/seqmanager/SequenceManager.cpp
@@ -90,8 +90,8 @@ SequenceManager::SequenceManager(RosegardenGUIDoc *doc,
m_metronomeMmapper(SegmentMmapperFactory::makeMetronome(m_doc)),
m_tempoSegmentMmapper(SegmentMmapperFactory::makeTempo(m_doc)),
m_timeSigSegmentMmapper(SegmentMmapperFactory::makeTimeSig(m_doc)),
- m_transportStatus(STOPPED),
- m_soundDriverStatus(NO_DRIVER),
+ m_transporttqStatus(STOPPED),
+ m_soundDrivertqStatus(NO_DRIVER),
m_transport(transport),
m_lastRewoundAt(clock()),
m_countdownDialog(0),
@@ -114,7 +114,7 @@ SequenceManager::SequenceManager(RosegardenGUIDoc *doc,
// m_compositionMmapper->cleanup();
m_countdownDialog = new CountdownDialog(dynamic_cast<TQWidget*>
- (m_doc->parent())->parentWidget());
+ (m_doc->tqparent())->tqparentWidget());
// Connect these for use later
//
connect(m_countdownTimer, TQT_SIGNAL(timeout()),
@@ -133,7 +133,7 @@ SequenceManager::SequenceManager(RosegardenGUIDoc *doc,
m_doc->getComposition().addObserver(this);
// The owner of this sequence manager will need to call
- // checkSoundDriverStatus on it to set up its status appropriately
+ // checkSoundDrivertqStatus on it to set up its status appropriately
// immediately after construction; we used to do it from here but
// we're not well placed to handle reporting to the user if it
// throws an exception (and we don't want to leave the object half
@@ -148,7 +148,7 @@ SequenceManager::~SequenceManager()
{
m_doc->getComposition().removeObserver(this);
- SEQMAN_DEBUG << "SequenceManager::~SequenceManager()\n";
+ SETQMAN_DEBUG << "SequenceManager::~SequenceManager()\n";
delete m_compositionMmapper;
delete m_controlBlockMmapper;
delete m_metronomeMmapper;
@@ -159,7 +159,7 @@ SequenceManager::~SequenceManager()
void SequenceManager::setDocument(RosegardenGUIDoc* doc)
{
- SEQMAN_DEBUG << "SequenceManager::setDocument(" << doc << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::setDocument(" << doc << ")\n";
DataBlockRepository::clear();
@@ -180,7 +180,7 @@ void SequenceManager::setDocument(RosegardenGUIDoc* doc)
delete m_compositionMmapperResetTimer;
m_countdownDialog = new CountdownDialog(dynamic_cast<TQWidget*>
- (m_doc->parent())->parentWidget());
+ (m_doc->tqparent())->tqparentWidget());
// Bug 933041: no longer connect the CountdownDialog from
// SequenceManager; instead let the RosegardenGUIApp connect it to
@@ -201,7 +201,7 @@ void SequenceManager::setDocument(RosegardenGUIDoc* doc)
for (Composition::iterator i = comp.begin(); i != comp.end(); ++i) {
- SEQMAN_DEBUG << "Adding segment with rid " << (*i)->getRuntimeId() << endl;
+ SETQMAN_DEBUG << "Adding segment with rid " << (*i)->getRuntimeId() << endl;
m_segments.insert(SegmentRefreshMap::value_type
(*i, (*i)->getNewRefreshStatusId()));
@@ -228,9 +228,9 @@ void SequenceManager::setDocument(RosegardenGUIDoc* doc)
}
void
-SequenceManager::setTransportStatus(const TransportStatus &status)
+SequenceManager::setTransporttqStatus(const TransporttqStatus &status)
{
- m_transportStatus = status;
+ m_transporttqStatus = status;
}
void
@@ -256,14 +256,14 @@ SequenceManager::play()
// If already playing or recording then stop
//
- if (m_transportStatus == PLAYING ||
- m_transportStatus == RECORDING ) {
+ if (m_transporttqStatus == PLAYING ||
+ m_transporttqStatus == RECORDING ) {
stopping();
return true;
}
// This check may throw an exception
- checkSoundDriverStatus(false);
+ checkSoundDrivertqStatus(false);
// Align Instrument lists and send initial program changes
//
@@ -284,15 +284,15 @@ SequenceManager::play()
//!!! disable the record button, because recording while playing is horribly
// broken, and disabling it is less complicated than fixing it
// see #1223025 - DMM
- // SEQMAN_DEBUG << "SequenceManager::play() - disabling record button, as we are playing\n";
+ // SETQMAN_DEBUG << "SequenceManager::play() - disabling record button, as we are playing\n";
// m_transport->RecordButton()->setEnabled(false);
if (comp.getCurrentTempo() == 0) {
comp.setCompositionDefaultTempo(comp.getTempoForQpm(120.0));
- SEQMAN_DEBUG << "SequenceManager::play() - setting Tempo to Default value of 120.000\n";
+ SETQMAN_DEBUG << "SequenceManager::play() - setting Tempo to Default value of 120.000\n";
} else {
- SEQMAN_DEBUG << "SequenceManager::play() - starting to play\n";
+ SETQMAN_DEBUG << "SequenceManager::play() - starting to play\n";
}
// Send initial tempo
@@ -369,7 +369,7 @@ SequenceManager::play()
// Send Play to the Sequencer
if (!rgapp->sequencerCall("play(long int, long int, long int, long int, long int, long int, long int, long int, long int, long int, long int)",
replyType, replyData, data)) {
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
return false;
}
@@ -380,9 +380,9 @@ SequenceManager::play()
if (result) {
// completed successfully
- m_transportStatus = STARTING_TO_PLAY;
+ m_transporttqStatus = STARTING_TO_PLAY;
} else {
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
std::cerr << "ERROR: SequenceManager::play(): Failed to start playback!" << std::endl;
}
@@ -400,7 +400,7 @@ SequenceManager::stopping()
// Do this here rather than in stop() to avoid any potential
// race condition (we use setPointerPosition() during stop()).
//
- if (m_transportStatus == STOPPED) {
+ if (m_transporttqStatus == STOPPED) {
/*!!!
if (m_doc->getComposition().isLooping())
m_doc->slotSetPointerPosition(m_doc->getComposition().getLoopStart());
@@ -414,17 +414,17 @@ SequenceManager::stopping()
// Disarm recording and drop back to STOPPED
//
- if (m_transportStatus == RECORDING_ARMED) {
- m_transportStatus = STOPPED;
+ if (m_transporttqStatus == RECORDING_ARMED) {
+ m_transporttqStatus = STOPPED;
m_transport->RecordButton()->setOn(false);
m_transport->MetronomeButton()->
setOn(m_doc->getComposition().usePlayMetronome());
return ;
}
- SEQMAN_DEBUG << "SequenceManager::stopping() - preparing to stop\n";
+ SETQMAN_DEBUG << "SequenceManager::stopping() - preparing to stop\n";
- // SEQMAN_DEBUG << kdBacktrace() << endl;
+ // SETQMAN_DEBUG << kdBacktrace() << endl;
stop();
@@ -436,7 +436,7 @@ SequenceManager::stop()
{
// Toggle off the buttons - first record
//
- if (m_transportStatus == RECORDING) {
+ if (m_transporttqStatus == RECORDING) {
m_transport->RecordButton()->setOn(false);
m_transport->MetronomeButton()->
setOn(m_doc->getComposition().usePlayMetronome());
@@ -452,7 +452,7 @@ SequenceManager::stop()
// re-enable the record button if it was previously disabled when
// going into play mode - DMM
- // SEQMAN_DEBUG << "SequenceManager::stop() - re-enabling record button\n";
+ // SETQMAN_DEBUG << "SequenceManager::stop() - re-enabling record button\n";
// m_transport->RecordButton()->setEnabled(true);
@@ -464,7 +464,7 @@ SequenceManager::stop()
// wait cursor
//
- TQApplication::setOverrideCursor(TQCursor(Qt::waitCursor));
+ TQApplication::setOverrideCursor(TQCursor(TQt::waitCursor));
TQCString replyType;
TQByteArray replyData;
@@ -477,25 +477,25 @@ SequenceManager::stop()
// restore
TQApplication::restoreOverrideCursor();
- TransportStatus status = m_transportStatus;
+ TransporttqStatus status = m_transporttqStatus;
// set new transport status first, so that if we're stopping
// recording we don't risk the record segment being restored by a
// timer while the document is busy trying to do away with it
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
// if we're recording MIDI or Audio then tidy up the recording Segment
if (status == RECORDING) {
m_doc->stopRecordingMidi();
m_doc->stopRecordingAudio();
- SEQMAN_DEBUG << "SequenceManager::stop() - stopped recording\n";
+ SETQMAN_DEBUG << "SequenceManager::stop() - stopped recording\n";
}
// always untoggle the play button at this stage
//
m_transport->PlayButton()->setOn(false);
- SEQMAN_DEBUG << "SequenceManager::stop() - stopped playing\n";
+ SETQMAN_DEBUG << "SequenceManager::stop() - stopped playing\n";
// We don't reset controllers at this point - what happens with static
// controllers the next time we play otherwise? [rwb]
@@ -515,7 +515,7 @@ SequenceManager::rewind()
std::pair<timeT, timeT> barRange =
composition.getBarRangeForTime(position - 1);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
// if we're playing and we had a rewind request less than 200ms
// ago and we're some way into the bar but less than half way
@@ -524,7 +524,7 @@ SequenceManager::rewind()
clock_t now = clock();
int elapsed = (now - m_lastRewoundAt) * 1000 / CLOCKS_PER_SEC;
- SEQMAN_DEBUG << "That was " << m_lastRewoundAt << ", this is " << now << ", elapsed is " << elapsed << endl;
+ SETQMAN_DEBUG << "That was " << m_lastRewoundAt << ", this is " << now << ", elapsed is " << elapsed << endl;
if (elapsed >= 0 && elapsed <= 200) {
if (position > barRange.first &&
@@ -563,10 +563,10 @@ SequenceManager::fastforward()
}
void
-SequenceManager::notifySequencerStatus(TransportStatus status)
+SequenceManager::notifySequencertqStatus(TransporttqStatus status)
{
// for the moment we don't do anything fancy
- m_transportStatus = status;
+ m_transporttqStatus = status;
}
@@ -586,7 +586,7 @@ SequenceManager::record(bool toggled)
{
mapSequencer();
- SEQMAN_DEBUG << "SequenceManager::record(" << toggled << ")" << endl;
+ SETQMAN_DEBUG << "SequenceManager::record(" << toggled << ")" << endl;
Composition &comp = m_doc->getComposition();
Studio &studio = m_doc->getStudio();
@@ -611,7 +611,7 @@ SequenceManager::record(bool toggled)
Instrument *instr = studio.getInstrumentById(instrId);
if (instr && instr->getType() == Instrument::Audio) {
- if (!m_doc || !(m_soundDriverStatus & AUDIO_OK)) {
+ if (!m_doc || !(m_soundDrivertqStatus & AUDIO_OK)) {
m_transport->RecordButton()->setOn(false);
throw(Exception("Audio subsystem is not available - can't record audio"));
}
@@ -623,9 +623,9 @@ SequenceManager::record(bool toggled)
if (toggled) { // preparing record or punch-in record
- if (m_transportStatus == RECORDING_ARMED) {
- SEQMAN_DEBUG << "SequenceManager::record - unarming record\n";
- m_transportStatus = STOPPED;
+ if (m_transporttqStatus == RECORDING_ARMED) {
+ SETQMAN_DEBUG << "SequenceManager::record - unarming record\n";
+ m_transporttqStatus = STOPPED;
// Toggle the buttons
m_transport->MetronomeButton()->setOn(comp.usePlayMetronome());
@@ -634,9 +634,9 @@ SequenceManager::record(bool toggled)
return ;
}
- if (m_transportStatus == STOPPED) {
- SEQMAN_DEBUG << "SequenceManager::record - armed record\n";
- m_transportStatus = RECORDING_ARMED;
+ if (m_transporttqStatus == STOPPED) {
+ SETQMAN_DEBUG << "SequenceManager::record - armed record\n";
+ m_transporttqStatus = RECORDING_ARMED;
// Toggle the buttons
m_transport->MetronomeButton()->setOn(comp.useRecordMetronome());
@@ -645,8 +645,8 @@ SequenceManager::record(bool toggled)
return ;
}
- if (m_transportStatus == RECORDING) {
- SEQMAN_DEBUG << "SequenceManager::record - stop recording and keep playing\n";
+ if (m_transporttqStatus == RECORDING) {
+ SETQMAN_DEBUG << "SequenceManager::record - stop recording and keep playing\n";
TQByteArray data;
TQCString replyType;
@@ -654,12 +654,12 @@ SequenceManager::record(bool toggled)
// Send Record to the Sequencer to signal it to drop out of record mode
if (!rgapp->sequencerCall("punchOut()", replyType, replyData, data)) {
- SEQMAN_DEBUG << "SequenceManager::record - the \"not very plausible\" code executed\n";
+ SETQMAN_DEBUG << "SequenceManager::record - the \"not very plausible\" code executed\n";
// #1797873 - set new transport status first, so that
// if we're stopping recording we don't risk the
// record segment being restored by a timer while the
// document is busy trying to do away with it
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
m_doc->stopRecordingMidi();
m_doc->stopRecordingAudio();
@@ -667,7 +667,7 @@ SequenceManager::record(bool toggled)
}
// #1797873 - as above
- m_transportStatus = PLAYING;
+ m_transporttqStatus = PLAYING;
m_doc->stopRecordingMidi();
m_doc->stopRecordingAudio();
@@ -675,8 +675,8 @@ SequenceManager::record(bool toggled)
return ;
}
- if (m_transportStatus == PLAYING) {
- SEQMAN_DEBUG << "SequenceManager::record - punch in recording\n";
+ if (m_transporttqStatus == PLAYING) {
+ SETQMAN_DEBUG << "SequenceManager::record - punch in recording\n";
punchIn = true;
goto punchin;
}
@@ -720,7 +720,7 @@ punchin:
}
// may throw an exception
- checkSoundDriverStatus(false);
+ checkSoundDrivertqStatus(false);
// toggle the Metronome button if it's in use
m_transport->MetronomeButton()->setOn(comp.useRecordMetronome());
@@ -738,7 +738,7 @@ punchin:
if (comp.isLooping())
m_doc->slotSetPointerPosition(comp.getLoopStart());
else {
- if (m_transportStatus != RECORDING_ARMED && punchIn == false) {
+ if (m_transporttqStatus != RECORDING_ARMED && punchIn == false) {
int startBar = comp.getBarNumber(comp.getPosition());
startBar -= config->readUnsignedNumEntry("countinbars", 0);
m_doc->slotSetPointerPosition(comp.getBarRange(startBar).first);
@@ -767,7 +767,7 @@ punchin:
InstrumentId iid = comp.getTrackById(*i)->getInstrument();
Instrument *inst = studio.getInstrumentById(iid);
if (inst && (inst->getType() != Instrument::Audio)) {
- SEQMAN_DEBUG << "SequenceManager: mdoc->addRecordMIDISegment(" << *i << ")" << endl;
+ SETQMAN_DEBUG << "SequenceManager: mdoc->addRecordMIDISegment(" << *i << ")" << endl;
m_doc->addRecordMIDISegment(*i);
}
}
@@ -778,10 +778,10 @@ punchin:
m_transport->PlayButton()->setOn(true);
if (comp.getCurrentTempo() == 0) {
- SEQMAN_DEBUG << "SequenceManager::play() - setting Tempo to Default value of 120.000\n";
+ SETQMAN_DEBUG << "SequenceManager::play() - setting Tempo to Default value of 120.000\n";
comp.setCompositionDefaultTempo(comp.getTempoForQpm(120.0));
} else {
- SEQMAN_DEBUG << "SequenceManager::record() - starting to record\n";
+ SETQMAN_DEBUG << "SequenceManager::record() - starting to record\n";
}
// set the tempo in the transport
@@ -853,7 +853,7 @@ punchin:
if (!rgapp->sequencerCall("record(long int, long int, long int, long int, long int, long int, long int, long int, long int, long int, long int, long int)",
replyType, replyData, data)) {
// failed
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
return ;
}
@@ -865,7 +865,7 @@ punchin:
if (result) {
// completed successfully
- m_transportStatus = STARTING_TO_RECORD;
+ m_transporttqStatus = STARTING_TO_RECORD;
// Create the countdown timer dialog to show recording time
// remaining. (Note (dmm) this has changed, and it now reports
@@ -898,9 +898,9 @@ punchin:
//m_countdownDialog->show();
} else {
- // Stop immediately - turn off buttons in parent
+ // Stop immediately - turn off buttons in tqparent
//
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
if (haveAudioInstrument) {
throw(Exception("Couldn't start recording audio.\nPlease set a valid file path in the Document Properties\n(Composition menu -> Edit Document Properties -> Audio)."));
@@ -950,7 +950,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
if ((*i)->getType() >= MappedEvent::Audio) {
if ((*i)->getType() == MappedEvent::AudioStopped) {
/*
- SEQMAN_DEBUG << "AUDIO FILE ID = "
+ SETQMAN_DEBUG << "AUDIO FILE ID = "
<< int((*i)->getData1())
<< " - FILE STOPPED - "
<< "INSTRUMENT = "
@@ -971,7 +971,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
if ((*i)->getType() ==
MappedEvent::AudioGeneratePreview) {
- SEQMAN_DEBUG << "Received AudioGeneratePreview: data1 is " << int((*i)->getData1()) << ", data2 " << int((*i)->getData2()) << ", instrument is " << (*i)->getInstrument() << endl;
+ SETQMAN_DEBUG << "Received AudioGeneratePreview: data1 is " << int((*i)->getData1()) << ", data2 " << int((*i)->getData2()) << ", instrument is " << (*i)->getInstrument() << endl;
m_doc->finalizeAudioFile((int)(*i)->getData1() +
(int)(*i)->getData2() * 256);
@@ -990,11 +990,11 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
restoreRecordSubscriptions();
}
- if (m_transportStatus == PLAYING ||
- m_transportStatus == RECORDING) {
+ if (m_transporttqStatus == PLAYING ||
+ m_transporttqStatus == RECORDING) {
if ((*i)->getType() == MappedEvent::SystemFailure) {
- SEQMAN_DEBUG << "Failure of some sort..." << endl;
+ SETQMAN_DEBUG << "Failure of some sort..." << endl;
bool handling = true;
@@ -1010,13 +1010,13 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
} else if ((*i)->getData1() == MappedEvent::FailureJackRestartFailed) {
KMessageBox::error(
- dynamic_cast<TQWidget*>(m_doc->parent())->parentWidget(),
+ dynamic_cast<TQWidget*>(m_doc->tqparent())->tqparentWidget(),
i18n("The JACK Audio subsystem has failed or it has stopped Rosegarden from processing audio.\nPlease restart Rosegarden to continue working with audio.\nQuitting other running applications may improve Rosegarden's performance."));
} else if ((*i)->getData1() == MappedEvent::FailureJackRestart) {
KMessageBox::error(
- dynamic_cast<TQWidget*>(m_doc->parent())->parentWidget(),
+ dynamic_cast<TQWidget*>(m_doc->tqparent())->tqparentWidget(),
i18n("The JACK Audio subsystem has stopped Rosegarden from processing audio, probably because of a processing overload.\nAn attempt to restart the audio service has been made, but some problems may remain.\nQuitting other running applications may improve Rosegarden's performance."));
} else if ((*i)->getData1() == MappedEvent::FailureCPUOverload) {
@@ -1027,7 +1027,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
stopping();
KMessageBox::error(
- dynamic_cast<TQWidget*>(m_doc->parent())->parentWidget(),
+ dynamic_cast<TQWidget*>(m_doc->tqparent())->tqparentWidget(),
i18n("Run out of processor power for real-time audio processing. Cannot continue."));
#endif
@@ -1041,7 +1041,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
continue;
if (!m_canReport) {
- SEQMAN_DEBUG << "Not reporting it to user just yet"
+ SETQMAN_DEBUG << "Not reporting it to user just yet"
<< endl;
continue;
}
@@ -1146,13 +1146,13 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
if ((*i)->getData1() == MappedEvent::FailureJackRestartFailed) {
KMessageBox::error(
- dynamic_cast<TQWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->tqparent()),
i18n("The JACK Audio subsystem has failed or it has stopped Rosegarden from processing audio.\nPlease restart Rosegarden to continue working with audio.\nQuitting other running applications may improve Rosegarden's performance."));
} else if ((*i)->getData1() == MappedEvent::FailureJackRestart) {
KMessageBox::error(
- dynamic_cast<TQWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->tqparent()),
i18n("The JACK Audio subsystem has stopped Rosegarden from processing audio, probably because of a processing overload.\nAn attempt to restart the audio service has been made, but some problems may remain.\nQuitting other running applications may improve Rosegarden's performance."));
} else if ((*i)->getData1() == MappedEvent::WarningImpreciseTimer &&
@@ -1166,7 +1166,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
RosegardenGUIApp::self()->awaitDialogClearance();
KMessageBox::information(
- dynamic_cast<TQWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->tqparent()),
i18n("<h3>System timer resolution is too low</h3><p>Rosegarden was unable to find a high-resolution timing source for MIDI performance.</p><p>This may mean you are using a Linux system with the kernel timer resolution set too low. Please contact your Linux distributor for more information.</p><p>Some Linux distributors already provide low latency kernels, see <a href=\"http://rosegarden.wiki.sourceforge.net/Low+latency+kernels\">http://rosegarden.wiki.sourceforge.net/Low+latency+kernels</a> for instructions.</p>"),
NULL, NULL,
KMessageBox::Notify + KMessageBox::AllowLink);
@@ -1184,7 +1184,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
RosegardenGUIApp::self()->awaitDialogClearance();
KMessageBox::information(
- dynamic_cast<TQWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->tqparent()),
i18n("<h3>System timer resolution is too low</h3><p>Rosegarden was unable to find a high-resolution timing source for MIDI performance.</p><p>You may be able to solve this problem by loading the RTC timer kernel module. To do this, try running <b>sudo modprobe snd-rtctimer</b> in a terminal window and then restarting Rosegarden.</p><p>Alternatively, check whether your Linux distributor provides a multimedia-optimized kernel. See <a href=\"http://rosegarden.wiki.sourceforge.net/Low+latency+kernels\">http://rosegarden.wiki.sourceforge.net/Low+latency+kernels</a> for notes about this.</p>"),
NULL, NULL,
KMessageBox::Notify + KMessageBox::AllowLink);
@@ -1201,8 +1201,8 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
// out any incoming external controller events
for (i = mC.begin(); i != mC.end(); ++i ) {
- if (m_transportStatus == STOPPED ||
- m_transportStatus == RECORDING_ARMED) {
+ if (m_transporttqStatus == STOPPED ||
+ m_transporttqStatus == RECORDING_ARMED) {
if ((*i)->getType() == MappedEvent::MidiNote) {
if ((*i)->getVelocity() == 0) {
emit insertableNoteOffReceived((*i)->getPitch(), (*i)->getVelocity());
@@ -1212,7 +1212,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
}
}
if ((*i)->getRecordedDevice() == Device::CONTROL_DEVICE) {
- SEQMAN_DEBUG << "controllerDeviceEventReceived" << endl;
+ SETQMAN_DEBUG << "controllerDeviceEventReceived" << endl;
emit controllerDeviceEventReceived(*i);
}
}
@@ -1221,14 +1221,14 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
void
SequenceManager::rewindToBeginning()
{
- SEQMAN_DEBUG << "SequenceManager::rewindToBeginning()\n";
+ SETQMAN_DEBUG << "SequenceManager::rewindToBeginning()\n";
m_doc->slotSetPointerPosition(m_doc->getComposition().getStartMarker());
}
void
SequenceManager::fastForwardToEnd()
{
- SEQMAN_DEBUG << "SequenceManager::fastForwardToEnd()\n";
+ SETQMAN_DEBUG << "SequenceManager::fastForwardToEnd()\n";
Composition &comp = m_doc->getComposition();
m_doc->slotSetPointerPosition(comp.getDuration());
@@ -1238,7 +1238,7 @@ void
SequenceManager::setLoop(const timeT &lhs, const timeT &rhs)
{
// do not set a loop if JACK transport sync is enabled, because this is
- // completely broken, and apparently broken due to a limitation of JACK
+ // completely broken, and aptqparently broken due to a limitation of JACK
// transport itself. #1240039 - DMM
// KConfig* config = kapp->config();
// config->setGroup(SequencerOptionsConfigGroup);
@@ -1269,7 +1269,7 @@ SequenceManager::setLoop(const timeT &lhs, const timeT &rhs)
}
void
-SequenceManager::checkSoundDriverStatus(bool warnUser)
+SequenceManager::checkSoundDrivertqStatus(bool warnUser)
{
TQByteArray data;
TQCString replyType;
@@ -1278,28 +1278,28 @@ SequenceManager::checkSoundDriverStatus(bool warnUser)
streamOut << TQString(VERSION);
- if (! rgapp->sequencerCall("getSoundDriverStatus(TQString)",
+ if (! rgapp->sequencerCall("getSoundDrivertqStatus(TQString)",
replyType, replyData, data)) {
- m_soundDriverStatus = NO_DRIVER;
+ m_soundDrivertqStatus = NO_DRIVER;
} else {
TQDataStream streamIn(replyData, IO_ReadOnly);
unsigned int result;
streamIn >> result;
- m_soundDriverStatus = result;
+ m_soundDrivertqStatus = result;
}
- SEQMAN_DEBUG << "Sound driver status is: " << m_soundDriverStatus << endl;
+ SETQMAN_DEBUG << "Sound driver status is: " << m_soundDrivertqStatus << endl;
if (!warnUser) return;
#ifdef HAVE_LIBJACK
- if ((m_soundDriverStatus & (AUDIO_OK | MIDI_OK | VERSION_OK)) ==
+ if ((m_soundDrivertqStatus & (AUDIO_OK | MIDI_OK | VERSION_OK)) ==
(AUDIO_OK | MIDI_OK | VERSION_OK)) return;
#else
- if ((m_soundDriverStatus & (MIDI_OK | VERSION_OK)) ==
+ if ((m_soundDrivertqStatus & (MIDI_OK | VERSION_OK)) ==
(MIDI_OK | VERSION_OK)) return;
#endif
@@ -1308,24 +1308,24 @@ SequenceManager::checkSoundDriverStatus(bool warnUser)
TQString text = "";
- if (m_soundDriverStatus == NO_DRIVER) {
+ if (m_soundDrivertqStatus == NO_DRIVER) {
text = i18n("<p>Both MIDI and Audio subsystems have failed to initialize.</p><p>You may continue without the sequencer, but we suggest closing Rosegarden, running \"alsaconf\" as root, and starting Rosegarden again. If you wish to run with no sequencer by design, then use \"rosegarden --nosequencer\" to avoid seeing this error in the future.</p>");
- } else if (!(m_soundDriverStatus & MIDI_OK)) {
+ } else if (!(m_soundDrivertqStatus & MIDI_OK)) {
text = i18n("<p>The MIDI subsystem has failed to initialize.</p><p>You may continue without the sequencer, but we suggest closing Rosegarden, running \"modprobe snd-seq-midi\" as root, and starting Rosegarden again. If you wish to run with no sequencer by design, then use \"rosegarden --nosequencer\" to avoid seeing this error in the future.</p>");
- } else if (!(m_soundDriverStatus & VERSION_OK)) {
+ } else if (!(m_soundDrivertqStatus & VERSION_OK)) {
text = i18n("<p>The Rosegarden sequencer module version does not match the GUI module version.</p><p>You have probably mixed up files from two different versions of Rosegarden. Please check your installation.</p>");
}
if (text != "") {
RosegardenGUIApp::self()->awaitDialogClearance();
KMessageBox::error(RosegardenGUIApp::self(),
- i18n("<h3>Sequencer startup failed</h3>%1").arg(text));
+ i18n("<h3>Sequencer startup failed</h3>%1").tqarg(text));
CurrentProgressDialog::thaw();
return;
}
#ifdef HAVE_LIBJACK
- if (!(m_soundDriverStatus & AUDIO_OK)) {
+ if (!(m_soundDrivertqStatus & AUDIO_OK)) {
RosegardenGUIApp::self()->awaitDialogClearance();
KMessageBox::information(RosegardenGUIApp::self(), i18n("<h3>Failed to connect to JACK audio server.</h3><p>Rosegarden could not connect to the JACK audio server. This probably means the JACK server is not running.</p><p>If you want to be able to play or record audio files or use plugins, you should exit Rosegarden and start the JACK server before running Rosegarden again.</p>"),
i18n("Failed to connect to JACK"),
@@ -1421,7 +1421,7 @@ void
SequenceManager::sendAudioLevel(MappedEvent *mE)
{
RosegardenGUIView *v;
- QList<RosegardenGUIView>& viewList = m_doc->getViewList();
+ TQList<RosegardenGUIView>& viewList = m_doc->getViewList();
for (v = viewList.first(); v != 0; v = viewList.next()) {
v->showVisuals(mE);
@@ -1432,7 +1432,7 @@ SequenceManager::sendAudioLevel(MappedEvent *mE)
void
SequenceManager::resetControllers()
{
- SEQMAN_DEBUG << "SequenceManager::resetControllers - resetting\n";
+ SETQMAN_DEBUG << "SequenceManager::resetControllers - resetting\n";
// Should do all Midi Instrument - not just guess like this is doing
// currently.
@@ -1459,7 +1459,7 @@ SequenceManager::resetControllers()
void
SequenceManager::resetMidiNetwork()
{
- SEQMAN_DEBUG << "SequenceManager::resetMidiNetwork - resetting\n";
+ SETQMAN_DEBUG << "SequenceManager::resetMidiNetwork - resetting\n";
MappedComposition mC;
// Should do all Midi Instrument - not just guess like this is doing
@@ -1492,7 +1492,7 @@ SequenceManager::sendMIDIRecordingDevice(const TQString recordDeviceStr)
MidiByte(true));
StudioControl::sendMappedEvent(mE);
- SEQMAN_DEBUG << "set MIDI record device to "
+ SETQMAN_DEBUG << "set MIDI record device to "
<< recordDevice << endl;
}
}
@@ -1558,7 +1558,7 @@ SequenceManager::reinitialiseSequencerStudio()
void
SequenceManager::panic()
{
- SEQMAN_DEBUG << "panic button\n";
+ SETQMAN_DEBUG << "panic button\n";
stopping();
@@ -1628,7 +1628,7 @@ SequenceManager::applyFiltering(const MappedComposition &mC,
void SequenceManager::resetCompositionMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetCompositionMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetCompositionMmapper()\n";
delete m_compositionMmapper;
m_compositionMmapper = new CompositionMmapper(m_doc);
@@ -1640,7 +1640,7 @@ void SequenceManager::resetCompositionMmapper()
void SequenceManager::resetMetronomeMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetMetronomeMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetMetronomeMmapper()\n";
delete m_metronomeMmapper;
m_metronomeMmapper = SegmentMmapperFactory::makeMetronome(m_doc);
@@ -1648,7 +1648,7 @@ void SequenceManager::resetMetronomeMmapper()
void SequenceManager::resetTempoSegmentMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetTempoSegmentMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetTempoSegmentMmapper()\n";
delete m_tempoSegmentMmapper;
m_tempoSegmentMmapper = SegmentMmapperFactory::makeTempo(m_doc);
@@ -1656,7 +1656,7 @@ void SequenceManager::resetTempoSegmentMmapper()
void SequenceManager::resetTimeSigSegmentMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetTimeSigSegmentMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetTimeSigSegmentMmapper()\n";
delete m_timeSigSegmentMmapper;
m_timeSigSegmentMmapper = SegmentMmapperFactory::makeTimeSig(m_doc);
@@ -1664,7 +1664,7 @@ void SequenceManager::resetTimeSigSegmentMmapper()
void SequenceManager::resetControlBlockMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetControlBlockMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetControlBlockMmapper()\n";
m_controlBlockMmapper->setDocument(m_doc);
}
@@ -1672,10 +1672,10 @@ void SequenceManager::resetControlBlockMmapper()
bool SequenceManager::event(TQEvent *e)
{
if (e->type() == TQEvent::User) {
- SEQMAN_DEBUG << "SequenceManager::event() with user event\n";
+ SETQMAN_DEBUG << "SequenceManager::event() with user event\n";
if (m_updateRequested) {
- SEQMAN_DEBUG << "SequenceManager::event(): update requested\n";
- checkRefreshStatus();
+ SETQMAN_DEBUG << "SequenceManager::event(): update requested\n";
+ checkRefreshtqStatus();
m_updateRequested = false;
}
return true;
@@ -1686,16 +1686,16 @@ bool SequenceManager::event(TQEvent *e)
void SequenceManager::update()
{
- SEQMAN_DEBUG << "SequenceManager::update()\n";
+ SETQMAN_DEBUG << "SequenceManager::update()\n";
// schedule a refresh-status check for the next event loop
TQEvent *e = new TQEvent(TQEvent::User);
m_updateRequested = true;
TQApplication::postEvent(this, e);
}
-void SequenceManager::checkRefreshStatus()
+void SequenceManager::checkRefreshtqStatus()
{
- SEQMAN_DEBUG << "SequenceManager::checkRefreshStatus()\n";
+ SETQMAN_DEBUG << "SequenceManager::checkRefreshtqStatus()\n";
// Look at trigger segments first: if one of those has changed, we'll
// need to be aware of it when scanning segments subsequently
@@ -1716,20 +1716,20 @@ void SequenceManager::checkRefreshStatus()
newTriggerMap[s] = m_triggerSegments[s];
}
- if (s->getRefreshStatus(newTriggerMap[s]).needsRefresh()) {
+ if (s->getRefreshtqStatus(newTriggerMap[s]).needsRefresh()) {
TriggerSegmentRec::SegmentRuntimeIdSet &thisSet = (*i)->getReferences();
ridset.insert(thisSet.begin(), thisSet.end());
- s->getRefreshStatus(newTriggerMap[s]).setNeedsRefresh(false);
+ s->getRefreshtqStatus(newTriggerMap[s]).setNeedsRefresh(false);
}
}
m_triggerSegments = newTriggerMap;
- SEQMAN_DEBUG << "SequenceManager::checkRefreshStatus: segments modified by changes to trigger segments are:" << endl;
+ SETQMAN_DEBUG << "SequenceManager::checkRefreshtqStatus: segments modified by changes to trigger segments are:" << endl;
int x = 0;
for (TriggerSegmentRec::SegmentRuntimeIdSet::iterator i = ridset.begin();
i != ridset.end(); ++i) {
- SEQMAN_DEBUG << x << ": " << *i << endl;
+ SETQMAN_DEBUG << x << ": " << *i << endl;
++x;
}
@@ -1741,16 +1741,16 @@ void SequenceManager::checkRefreshStatus()
}
m_removedSegments.clear();
- SEQMAN_DEBUG << "SequenceManager::checkRefreshStatus: we have "
+ SETQMAN_DEBUG << "SequenceManager::checkRefreshtqStatus: we have "
<< m_segments.size() << " segments" << endl;
// then the ones which are still there
for (SegmentRefreshMap::iterator i = m_segments.begin();
i != m_segments.end(); ++i) {
- if (i->first->getRefreshStatus(i->second).needsRefresh() ||
+ if (i->first->getRefreshtqStatus(i->second).needsRefresh() ||
ridset.find(i->first->getRuntimeId()) != ridset.end()) {
segmentModified(i->first);
- i->first->getRefreshStatus(i->second).setNeedsRefresh(false);
+ i->first->getRefreshtqStatus(i->second).setNeedsRefresh(false);
}
}
@@ -1763,21 +1763,21 @@ void SequenceManager::checkRefreshStatus()
void SequenceManager::segmentModified(Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::segmentModified(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentModified(" << s << ")\n";
bool sizeChanged = m_compositionMmapper->segmentModified(s);
- SEQMAN_DEBUG << "SequenceManager::segmentModified() : size changed = "
+ SETQMAN_DEBUG << "SequenceManager::segmentModified() : size changed = "
<< sizeChanged << endl;
- if ((m_transportStatus == PLAYING) && sizeChanged) {
+ if ((m_transporttqStatus == PLAYING) && sizeChanged) {
TQByteArray data;
TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (TQString)m_compositionMmapper->getSegmentFileName(s);
streamOut << (size_t)m_compositionMmapper->getSegmentFileSize(s);
- SEQMAN_DEBUG << "SequenceManager::segmentModified() : DCOP-call sequencer remapSegment"
+ SETQMAN_DEBUG << "SequenceManager::segmentModified() : DCOP-call sequencer remapSegment"
<< m_compositionMmapper->getSegmentFileName(s) << endl;
rgapp->sequencerSend("remapSegment(TQString, size_t)", data);
@@ -1786,13 +1786,13 @@ void SequenceManager::segmentModified(Segment* s)
void SequenceManager::segmentAdded(const Composition*, Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::segmentAdded(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentAdded(" << s << ")\n";
m_addedSegments.push_back(s);
}
void SequenceManager::segmentRemoved(const Composition*, Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::segmentRemoved(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentRemoved(" << s << ")\n";
m_removedSegments.push_back(s);
std::vector<Segment*>::iterator i = find(m_addedSegments.begin(), m_addedSegments.end(), s);
if (i != m_addedSegments.end())
@@ -1801,21 +1801,21 @@ void SequenceManager::segmentRemoved(const Composition*, Segment* s)
void SequenceManager::segmentRepeatChanged(const Composition*, Segment* s, bool repeat)
{
- SEQMAN_DEBUG << "SequenceManager::segmentRepeatChanged(" << s << ", " << repeat << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentRepeatChanged(" << s << ", " << repeat << ")\n";
segmentModified(s);
}
void SequenceManager::segmentRepeatEndChanged(const Composition*, Segment* s, timeT newEndTime)
{
- SEQMAN_DEBUG << "SequenceManager::segmentRepeatEndChanged(" << s << ", " << newEndTime << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentRepeatEndChanged(" << s << ", " << newEndTime << ")\n";
segmentModified(s);
}
void SequenceManager::segmentEventsTimingChanged(const Composition*, Segment * s, timeT t, RealTime)
{
- SEQMAN_DEBUG << "SequenceManager::segmentEventsTimingChanged(" << s << ", " << t << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentEventsTimingChanged(" << s << ", " << t << ")\n";
segmentModified(s);
- if (s && s->getType() == Segment::Audio && m_transportStatus == PLAYING) {
+ if (s && s->getType() == Segment::Audio && m_transporttqStatus == PLAYING) {
TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
@@ -1823,15 +1823,15 @@ void SequenceManager::segmentEventsTimingChanged(const Composition*, Segment * s
void SequenceManager::segmentTransposeChanged(const Composition*, Segment *s, int transpose)
{
- SEQMAN_DEBUG << "SequenceManager::segmentTransposeChanged(" << s << ", " << transpose << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentTransposeChanged(" << s << ", " << transpose << ")\n";
segmentModified(s);
}
void SequenceManager::segmentTrackChanged(const Composition*, Segment *s, TrackId id)
{
- SEQMAN_DEBUG << "SequenceManager::segmentTrackChanged(" << s << ", " << id << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentTrackChanged(" << s << ", " << id << ")\n";
segmentModified(s);
- if (s && s->getType() == Segment::Audio && m_transportStatus == PLAYING) {
+ if (s && s->getType() == Segment::Audio && m_transporttqStatus == PLAYING) {
TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
@@ -1839,17 +1839,17 @@ void SequenceManager::segmentTrackChanged(const Composition*, Segment *s, TrackI
void SequenceManager::segmentEndMarkerChanged(const Composition*, Segment *s, bool)
{
- SEQMAN_DEBUG << "SequenceManager::segmentEndMarkerChanged(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentEndMarkerChanged(" << s << ")\n";
segmentModified(s);
}
void SequenceManager::processAddedSegment(Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::processAddedSegment(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::processAddedSegment(" << s << ")\n";
m_compositionMmapper->segmentAdded(s);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
TQByteArray data;
TQDataStream streamOut(data, IO_WriteOnly);
@@ -1857,7 +1857,7 @@ void SequenceManager::processAddedSegment(Segment* s)
streamOut << m_compositionMmapper->getSegmentFileName(s);
if (!rgapp->sequencerSend("addSegment(TQString)", data)) {
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
}
}
@@ -1869,12 +1869,12 @@ void SequenceManager::processAddedSegment(Segment* s)
void SequenceManager::processRemovedSegment(Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::processRemovedSegment(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::processRemovedSegment(" << s << ")\n";
TQString filename = m_compositionMmapper->getSegmentFileName(s);
m_compositionMmapper->segmentDeleted(s);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
TQByteArray data;
TQDataStream streamOut(data, IO_WriteOnly);
@@ -1883,7 +1883,7 @@ void SequenceManager::processRemovedSegment(Segment* s)
if (!rgapp->sequencerSend("deleteSegment(TQString)", data)) {
// failed
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
}
}
@@ -1893,7 +1893,7 @@ void SequenceManager::processRemovedSegment(Segment* s)
void SequenceManager::endMarkerTimeChanged(const Composition *, bool /*shorten*/)
{
- SEQMAN_DEBUG << "SequenceManager::endMarkerTimeChanged()\n";
+ SETQMAN_DEBUG << "SequenceManager::endMarkerTimeChanged()\n";
m_compositionMmapperResetTimer->start(500, true); // schedule a composition mmapper reset in 0.5s
}
@@ -1904,10 +1904,10 @@ void SequenceManager::timeSignatureChanged(const Composition *)
void SequenceManager::trackChanged(const Composition *, Track* t)
{
- SEQMAN_DEBUG << "SequenceManager::trackChanged(" << t << ", " << (t ? t->getPosition() : -1) << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::trackChanged(" << t << ", " << (t ? t->getPosition() : -1) << ")\n";
m_controlBlockMmapper->updateTrackData(t);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
@@ -1924,7 +1924,7 @@ void SequenceManager::metronomeChanged(InstrumentId id,
// This method is called when the user has changed the
// metronome instrument, pitch etc
- SEQMAN_DEBUG << "SequenceManager::metronomeChanged (simple)"
+ SETQMAN_DEBUG << "SequenceManager::metronomeChanged (simple)"
<< ", instrument = "
<< id
<< endl;
@@ -1933,7 +1933,7 @@ void SequenceManager::metronomeChanged(InstrumentId id,
resetMetronomeMmapper();
m_controlBlockMmapper->updateMetronomeData(id);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
m_controlBlockMmapper->updateMetronomeForPlayback();
} else {
m_controlBlockMmapper->updateMetronomeForRecord();
@@ -1949,7 +1949,7 @@ void SequenceManager::metronomeChanged(const Composition *)
// This method is called when the muting status in the composition
// has changed -- the metronome itself has not actually changed
- SEQMAN_DEBUG << "SequenceManager::metronomeChanged "
+ SETQMAN_DEBUG << "SequenceManager::metronomeChanged "
<< ", instrument = "
<< m_metronomeMmapper->getMetronomeInstrument()
<< endl;
@@ -1957,7 +1957,7 @@ void SequenceManager::metronomeChanged(const Composition *)
m_controlBlockMmapper->updateMetronomeData
(m_metronomeMmapper->getMetronomeInstrument());
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
m_controlBlockMmapper->updateMetronomeForPlayback();
} else {
m_controlBlockMmapper->updateMetronomeForRecord();
@@ -1973,7 +1973,7 @@ void SequenceManager::filtersChanged(MidiFilter thruFilter,
void SequenceManager::soloChanged(const Composition *, bool solo, TrackId selectedTrack)
{
if (m_controlBlockMmapper->updateSoloData(solo, selectedTrack)) {
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
@@ -1982,7 +1982,7 @@ void SequenceManager::soloChanged(const Composition *, bool solo, TrackId select
void SequenceManager::tempoChanged(const Composition *c)
{
- SEQMAN_DEBUG << "SequenceManager::tempoChanged()\n";
+ SETQMAN_DEBUG << "SequenceManager::tempoChanged()\n";
// Refresh all segments
//
@@ -1999,7 +1999,7 @@ void SequenceManager::tempoChanged(const Composition *c)
if (c->isLooping())
setLoop(c->getLoopStart(), c->getLoopEnd());
- else if (m_transportStatus == PLAYING) {
+ else if (m_transporttqStatus == PLAYING) {
// If the tempo changes during playback, reset the pointer
// position because the sequencer keeps track of position in
// real time and we want to maintain the same position in