| @@ -465,6 +465,15 @@ protected: | |||||
| if (CarlaPlugin* const plugin = fEngine->getPlugin(pluginId)) | if (CarlaPlugin* const plugin = fEngine->getPlugin(pluginId)) | ||||
| plugin->prepareForSave(); | plugin->prepareForSave(); | ||||
| } | } | ||||
| else if (std::strcmp(msg, "reset_parameters") == 0) | |||||
| { | |||||
| uint32_t pluginId; | |||||
| CARLA_SAFE_ASSERT_RETURN(readNextLineAsUInt(pluginId), true); | |||||
| if (CarlaPlugin* const plugin = fEngine->getPlugin(pluginId)) | |||||
| plugin->resetParameters(); | |||||
| } | |||||
| else if (std::strcmp(msg, "randomize_parameters") == 0) | else if (std::strcmp(msg, "randomize_parameters") == 0) | ||||
| { | { | ||||
| uint32_t pluginId; | uint32_t pluginId; | ||||
| @@ -487,6 +487,9 @@ class PluginHost(object): | |||||
| def prepare_for_save(self, pluginId): | def prepare_for_save(self, pluginId): | ||||
| gCarla.gui.send(["prepare_for_save", pluginId]) | gCarla.gui.send(["prepare_for_save", pluginId]) | ||||
| def reset_parameters(self, pluginId): | |||||
| gCarla.gui.send(["reset_parameters", pluginId]) | |||||
| def randomize_parameters(self, pluginId): | def randomize_parameters(self, pluginId): | ||||
| gCarla.gui.send(["randomize_parameters", pluginId]) | gCarla.gui.send(["randomize_parameters", pluginId]) | ||||
| @@ -119,11 +119,7 @@ static void writeManifestFile(PluginListManager& plm) | |||||
| const NativePluginDescriptor* const& pluginDesc(it.getValue()); | const NativePluginDescriptor* const& pluginDesc(it.getValue()); | ||||
| const String label(pluginDesc->label); | const String label(pluginDesc->label); | ||||
| if (label == "carla") | |||||
| text += "<http://kxstudio.sf.net/carla>\n"; | |||||
| else | |||||
| text += "<http://kxstudio.sf.net/carla/plugins/" + label + ">\n"; | |||||
| text += "<http://kxstudio.sf.net/carla/plugins/" + label + ">\n"; | |||||
| text += " a lv2:Plugin ;\n"; | text += " a lv2:Plugin ;\n"; | ||||
| text += " lv2:binary <carla-native" PLUGIN_EXT "> ;\n"; | text += " lv2:binary <carla-native" PLUGIN_EXT "> ;\n"; | ||||
| text += " rdfs:seeAlso <" + label + ".ttl> .\n"; | text += " rdfs:seeAlso <" + label + ".ttl> .\n"; | ||||
| @@ -210,10 +206,7 @@ static void writePluginFile(const NativePluginDescriptor* const pluginDesc) | |||||
| // ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||
| // Plugin URI | // Plugin URI | ||||
| if (pluginLabel == "carla") | |||||
| text += "<http://kxstudio.sf.net/carla>\n"; | |||||
| else | |||||
| text += "<http://kxstudio.sf.net/carla/plugins/" + pluginLabel + ">\n"; | |||||
| text += "<http://kxstudio.sf.net/carla/plugins/" + pluginLabel + ">\n"; | |||||
| // ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||
| // Category | // Category | ||||
| @@ -1183,8 +1183,6 @@ static LV2_Handle lv2_instantiate(const LV2_Descriptor* lv2Descriptor, double sa | |||||
| if (std::strncmp(lv2Descriptor->URI, "http://kxstudio.sf.net/carla/plugins/", 37) == 0) | if (std::strncmp(lv2Descriptor->URI, "http://kxstudio.sf.net/carla/plugins/", 37) == 0) | ||||
| pluginLabel = lv2Descriptor->URI+37; | pluginLabel = lv2Descriptor->URI+37; | ||||
| else if (std::strcmp(lv2Descriptor->URI, "http://kxstudio.sf.net/carla") == 0) | |||||
| pluginLabel = "carla"; | |||||
| if (pluginLabel == nullptr) | if (pluginLabel == nullptr) | ||||
| { | { | ||||
| @@ -1404,16 +1402,8 @@ const LV2_Descriptor* lv2_descriptor(uint32_t index) | |||||
| const NativePluginDescriptor* const pluginDesc(plm.descs.getAt(index)); | const NativePluginDescriptor* const pluginDesc(plm.descs.getAt(index)); | ||||
| CarlaString tmpURI; | CarlaString tmpURI; | ||||
| if (std::strcmp(pluginDesc->label, "carla") == 0) | |||||
| { | |||||
| tmpURI = "http://kxstudio.sf.net/carla"; | |||||
| } | |||||
| else | |||||
| { | |||||
| tmpURI = "http://kxstudio.sf.net/carla/plugins/"; | |||||
| tmpURI += pluginDesc->label; | |||||
| } | |||||
| tmpURI = "http://kxstudio.sf.net/carla/plugins/"; | |||||
| tmpURI += pluginDesc->label; | |||||
| carla_debug("lv2_descriptor(%i) - not found, allocating new with uri \"%s\"", index, (const char*)tmpURI); | carla_debug("lv2_descriptor(%i) - not found, allocating new with uri \"%s\"", index, (const char*)tmpURI); | ||||