Browse Source

carla-lv2: don't set control outputs default value

tags/1.9.7
falkTX 8 years ago
parent
commit
945ea8e3e7
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      source/plugin/carla-lv2-export.cpp

+ 3
- 1
source/plugin/carla-lv2-export.cpp View File

@@ -500,7 +500,9 @@ static void writePluginFile(const NativePluginDescriptor* const pluginDesc)
else
text += " lv2:name \"Port " + String(i+1) + "\" ;\n";

text += " lv2:default " + String::formatted("%f", paramInfo->ranges.def) + " ;\n";
if ((paramInfo->hints & NATIVE_PARAMETER_IS_OUTPUT) == 0)
text += " lv2:default " + String::formatted("%f", paramInfo->ranges.def) + " ;\n";

text += " lv2:minimum " + String::formatted("%f", paramInfo->ranges.min) + " ;\n";
text += " lv2:maximum " + String::formatted("%f", paramInfo->ranges.max) + " ;\n";



Loading…
Cancel
Save