60 |
|
|
61 |
import org.jsampler.task.*; |
import org.jsampler.task.*; |
62 |
|
|
63 |
|
import org.jsampler.view.InstrumentsDbTreeModel; |
64 |
|
import org.jsampler.view.JSChannel; |
65 |
|
import org.jsampler.view.JSChannelsPane; |
66 |
import org.jsampler.view.JSMainFrame; |
import org.jsampler.view.JSMainFrame; |
67 |
import org.jsampler.view.JSProgress; |
import org.jsampler.view.JSProgress; |
68 |
import org.jsampler.view.JSViewConfig; |
import org.jsampler.view.JSViewConfig; |
|
import org.jsampler.view.InstrumentsDbTreeModel; |
|
69 |
|
|
70 |
import org.linuxsampler.lscp.AudioOutputChannel; |
import org.linuxsampler.lscp.AudioOutputChannel; |
71 |
import org.linuxsampler.lscp.AudioOutputDevice; |
import org.linuxsampler.lscp.AudioOutputDevice; |
1097 |
out.reset(); |
out.reset(); |
1098 |
sb.append("\r\n"); |
sb.append("\r\n"); |
1099 |
} |
} |
1100 |
|
|
1101 |
SamplerChannelModel[] channels = getSamplerModel().getChannels(); |
int chnId = 0; |
1102 |
|
for(JSChannelsPane cp : CC.getMainFrame().getChannelsPaneList()) { |
1103 |
for(int i = 0; i < channels.length; i++) { |
for(JSChannel chn : cp.getChannels()) { |
1104 |
SamplerChannelModel scm = channels[i]; |
SamplerChannelModel scm; |
1105 |
exportChannelToLscpScript(scm.getChannelInfo(), i, lscpClient); |
scm = getSamplerModel().getChannelById(chn.getChannelId()); |
1106 |
sb.append(out.toString()); |
exportChannelToLscpScript(scm.getChannelInfo(), chnId, lscpClient); |
1107 |
out.reset(); |
sb.append(out.toString()); |
1108 |
|
out.reset(); |
1109 |
sb.append("\r\n"); |
|
1110 |
|
sb.append("\r\n"); |
1111 |
exportFxSendsToLscpScript(scm, i, lscpClient); |
|
1112 |
sb.append(out.toString()); |
exportFxSendsToLscpScript(scm, chnId, lscpClient); |
1113 |
out.reset(); |
sb.append(out.toString()); |
1114 |
|
out.reset(); |
1115 |
sb.append("\r\n"); |
|
1116 |
|
sb.append("\r\n"); |
1117 |
|
|
1118 |
|
chnId++; |
1119 |
|
} |
1120 |
} |
} |
1121 |
|
|
1122 |
sb.append(getViewConfig().exportSessionViewConfig()); |
sb.append(getViewConfig().exportSessionViewConfig()); |
1214 |
int i = chn.getInstrumentIndex(); |
int i = chn.getInstrumentIndex(); |
1215 |
if(s != null) lscpCLient.loadInstrument(s, i, chnId, true); |
if(s != null) lscpCLient.loadInstrument(s, i, chnId, true); |
1216 |
|
|
1217 |
if(chn.isMuted()) lscpCLient.setChannelMute(chnId, true); |
if(chn.isMuted() && !chn.isMutedBySolo()) lscpCLient.setChannelMute(chnId, true); |
1218 |
if(chn.isSoloChannel()) lscpCLient.setChannelSolo(chnId, true); |
if(chn.isSoloChannel()) lscpCLient.setChannelSolo(chnId, true); |
1219 |
} catch(Exception e) { |
} catch(Exception e) { |
1220 |
getLogger().log(Level.FINE, HF.getErrorMessage(e), e); |
getLogger().log(Level.FINE, HF.getErrorMessage(e), e); |