Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/src/lv2/SurgeLv2Export.cpp b/src/lv2/SurgeLv2Export.cpp
index c2b03b7..3f46a6b 100644
--- a/src/lv2/SurgeLv2Export.cpp
+++ b/src/lv2/SurgeLv2Export.cpp
@@ -99,7 +99,7 @@ void lv2_generate_ttl(const char* baseName)
" lv2:index " << portIndex << " ;\n"
" lv2:symbol \"" << pSymbol << "\" ;\n"
" lv2:name \"" << pName << "\" ;\n"
- " lv2:default " << pMeta.fdefault << " ;\n"
+ " lv2:default " << defaultSynth->getParameter01(index) << " ;\n"
" lv2:minimum " << pMeta.fmin << " ;\n"
" lv2:maximum " << pMeta.fmax << " ;\n"
" ]";
@baconpaul

This comment has been minimized.

Copy link

commented Sep 9, 2019

Yeah this also fixes the problem. (And pMeta.fdefault is definitely not the right value). Would you like to push it in as a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.