@@ -792,6 +792,14 @@ protected: | |||||
const uint pluginId(plugin->getId()); | const uint pluginId(plugin->getId()); | ||||
for (int32_t i=PARAMETER_ACTIVE; i>PARAMETER_MAX; --i) | |||||
{ | |||||
std::sprintf(fTmpBuf, "PARAMVAL_%i:%i\n", pluginId, i); | |||||
fUiServer.writeMsg(fTmpBuf); | |||||
std::sprintf(fTmpBuf, "%f\n", plugin->getInternalParameterValue(i)); | |||||
fUiServer.writeMsg(fTmpBuf); | |||||
} | |||||
uint32_t ins, outs, count; | uint32_t ins, outs, count; | ||||
plugin->getParameterCountInfo(ins, outs); | plugin->getParameterCountInfo(ins, outs); | ||||
count = plugin->getParameterCount(); | count = plugin->getParameterCount(); | ||||
@@ -671,7 +671,6 @@ class HostWindow(QMainWindow): | |||||
self.projectLoadingFinished() | self.projectLoadingFinished() | ||||
# just in case | |||||
self.host.remove_all_plugins() | self.host.remove_all_plugins() | ||||
self.removeAllPlugins() | self.removeAllPlugins() | ||||
@@ -144,7 +144,10 @@ class CarlaMiniW(ExternalUI, HostWindow): | |||||
elif msg.startswith("PARAMVAL_"): | elif msg.startswith("PARAMVAL_"): | ||||
pluginId, paramId = [int(i) for i in msg.replace("PARAMVAL_", "").split(":")] | pluginId, paramId = [int(i) for i in msg.replace("PARAMVAL_", "").split(":")] | ||||
paramValue = float(self.readlineblock()) | paramValue = float(self.readlineblock()) | ||||
self.host._set_parameterValue(pluginId, paramId, paramValue) | |||||
if paramId < 0: | |||||
self.host._set_internalValue(pluginId, paramId, paramValue) | |||||
else: | |||||
self.host._set_parameterValue(pluginId, paramId, paramValue) | |||||
elif msg.startswith("ENGINE_CALLBACK_"): | elif msg.startswith("ENGINE_CALLBACK_"): | ||||
action = int(msg.replace("ENGINE_CALLBACK_", "")) | action = int(msg.replace("ENGINE_CALLBACK_", "")) | ||||