Created
September 9, 2019 18:21
-
-
Save jpcima/a5d4047d78f1d3ab0e66236f792573e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
" ]"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?