896 |
} |
} |
897 |
#endif // CONFIG_MIDI_INSTRUMENT |
#endif // CONFIG_MIDI_INSTRUMENT |
898 |
|
|
|
#ifdef CONFIG_FXSEND |
|
|
int iFxSend = 0; |
|
|
#endif |
|
899 |
// Sampler channel mapping. |
// Sampler channel mapping. |
900 |
QWidgetList wlist = m_pWorkspace->windowList(); |
QWidgetList wlist = m_pWorkspace->windowList(); |
901 |
for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) { |
for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) { |
955 |
#ifdef CONFIG_FXSEND |
#ifdef CONFIG_FXSEND |
956 |
int iChannelID = pChannel->channelID(); |
int iChannelID = pChannel->channelID(); |
957 |
int *piFxSends = ::lscp_list_fxsends(m_pClient, iChannelID); |
int *piFxSends = ::lscp_list_fxsends(m_pClient, iChannelID); |
958 |
for (int iFx = 0; piFxSends && piFxSends[iFx] >= 0; iFx++) { |
for (int iFxSend = 0; |
959 |
lscp_fxsend_info_t *pFxSendInfo |
piFxSends && piFxSends[iFxSend] >= 0; |
960 |
= ::lscp_get_fxsend_info(m_pClient, iChannelID, piFxSends[iFx]); |
iFxSend++) { |
961 |
|
lscp_fxsend_info_t *pFxSendInfo = ::lscp_get_fxsend_info( |
962 |
|
m_pClient, iChannelID, piFxSends[iFxSend]); |
963 |
if (pFxSendInfo) { |
if (pFxSendInfo) { |
964 |
ts << "CREATE FX_SEND " << iChannel |
ts << "CREATE FX_SEND " << iChannel |
965 |
<< " " << pFxSendInfo->midi_controller; |
<< " " << pFxSendInfo->midi_controller; |
967 |
ts << " '" << pFxSendInfo->name << "'"; |
ts << " '" << pFxSendInfo->name << "'"; |
968 |
ts << endl; |
ts << endl; |
969 |
int *piRouting = pFxSendInfo->audio_routing; |
int *piRouting = pFxSendInfo->audio_routing; |
970 |
for (int i = 0; piRouting && piRouting[i] >= 0; i++) { |
for (int iAudioSrc = 0; |
971 |
ts << "SET FX_SEND AUDIO_OUTPUT_CHANNEL " << iChannel |
piRouting && piRouting[iAudioSrc] >= 0; |
972 |
|
iAudioSrc++) { |
973 |
|
ts << "SET FX_SEND AUDIO_OUTPUT_CHANNEL " |
974 |
|
<< iChannel |
975 |
<< " " << iFxSend |
<< " " << iFxSend |
976 |
<< " " << i << " " << piRouting[i] << endl; |
<< " " << iAudioSrc |
977 |
|
<< " " << piRouting[iAudioSrc] << endl; |
978 |
} |
} |
|
// Increment logical FX send identifier... |
|
|
iFxSend++; |
|
979 |
} // Check for errors... |
} // Check for errors... |
980 |
else if (::lscp_client_get_errno(m_pClient)) { |
else if (::lscp_client_get_errno(m_pClient)) { |
981 |
appendMessagesClient("lscp_get_fxsend_info"); |
appendMessagesClient("lscp_get_fxsend_info"); |