600 |
QTextStream ts(&file); |
QTextStream ts(&file); |
601 |
while (!ts.atEnd()) { |
while (!ts.atEnd()) { |
602 |
// Read the line. |
// Read the line. |
603 |
QString sCommand = ts.readLine().simplifyWhiteSpace(); |
QString sCommand = ts.readLine().stripWhiteSpace(); |
604 |
// If not empty, nor a comment, call the server... |
// If not empty, nor a comment, call the server... |
605 |
if (!sCommand.isEmpty() && sCommand[0] != '#') { |
if (!sCommand.isEmpty() && sCommand[0] != '#') { |
606 |
appendMessagesColor(sCommand, "#996633"); |
appendMessagesColor(sCommand, "#996633"); |
787 |
ts << endl; |
ts << endl; |
788 |
ts << "LOAD ENGINE " << pChannel->engineName() << " " << iChannel << endl; |
ts << "LOAD ENGINE " << pChannel->engineName() << " " << iChannel << endl; |
789 |
ts << "LOAD INSTRUMENT NON_MODAL '" << pChannel->instrumentFile() << "' " << pChannel->instrumentNr() << " " << iChannel << endl; |
ts << "LOAD INSTRUMENT NON_MODAL '" << pChannel->instrumentFile() << "' " << pChannel->instrumentNr() << " " << iChannel << endl; |
790 |
|
qsamplerChannelRoutingMap::ConstIterator audioRoute; |
791 |
|
for (audioRoute = pChannel->audioRouting().begin(); |
792 |
|
audioRoute != pChannel->audioRouting().end(); |
793 |
|
++audioRoute) { |
794 |
|
ts << "SET CHANNEL AUDIO_OUTPUT_CHANNEL " << iChannel |
795 |
|
<< " " << audioRoute.key() |
796 |
|
<< " " << audioRoute.data() << endl; |
797 |
|
} |
798 |
ts << "SET CHANNEL VOLUME " << iChannel << " " << pChannel->volume() << endl; |
ts << "SET CHANNEL VOLUME " << iChannel << " " << pChannel->volume() << endl; |
799 |
if (pChannel->channelMute()) |
if (pChannel->channelMute()) |
800 |
ts << "SET CHANNEL MUTE " << iChannel << " 1" << endl; |
ts << "SET CHANNEL MUTE " << iChannel << " 1" << endl; |
801 |
if (pChannel->channelSolo()) |
if (pChannel->channelSolo()) |
802 |
ts << "SET CHANNEL SOLO " << iChannel << " 1" << endl; |
ts << "SET CHANNEL SOLO " << iChannel << " 1" << endl; |
803 |
ts << endl; |
ts << endl; |
804 |
} |
} |
805 |
} |
} |
1357 |
// Update the main application caption... |
// Update the main application caption... |
1358 |
QString sSessionName = sessionName(m_sFilename); |
QString sSessionName = sessionName(m_sFilename); |
1359 |
if (m_iDirtyCount > 0) |
if (m_iDirtyCount > 0) |
1360 |
sSessionName += '*'; |
sSessionName += " *"; |
1361 |
setCaption(tr(QSAMPLER_TITLE " - [%1]").arg(sSessionName)); |
setCaption(tr(QSAMPLER_TITLE " - [%1]").arg(sSessionName)); |
1362 |
|
|
1363 |
// Update the main menu state... |
// Update the main menu state... |