commit cd8507463efcd7505e171545337e01e5353ca041
parent 8165cd05856023d8d4c27558c7318dc07c2cab34
Author: Johannes Lorenz <j.git@lorenz-ho.me>
Date: Sun, 22 Nov 2020 12:39:57 +0100
Don't Save DT Envelope (alias) ports
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Misc/MiddleWare.cpp b/src/Misc/MiddleWare.cpp
@@ -708,7 +708,7 @@ public:
doReadOnlyOp([this,filename,&dispatcher,&master2,&savefile,&res]()
{
savefile = master->saveOSC(savefile);
-
+#if 1
// load the savefile string into another master to compare the results
// between the original and the savefile-loaded master
// this requires a temporary master switch
@@ -732,7 +732,7 @@ public:
printf("Saved in less than %d ms.\n", 50*i);
dispatcher.updateMaster(old_master);
-
+#endif
if(res < 0)
{
std::cerr << "invalid savefile (or a backend error)!" << std::endl;
diff --git a/src/Params/EnvelopeParams.cpp b/src/Params/EnvelopeParams.cpp
@@ -35,7 +35,7 @@ namespace zyn {
#define dTREAL(var) (powf(2.0f, var / 127.0f * 12.0f) - 1.0f) / 100.0f
#define rParamDT(name, ...) \
- {"P" STRINGIFY(name) "::i", rProp(parameter) DOC(__VA_ARGS__), NULL, rParamDTCb(name)}
+ {"P" STRINGIFY(name) "::i", rProp(alias) rProp(parameter) DOC(__VA_ARGS__), NULL, rParamDTCb(name)}
#define rParamDTCb(name) rBOIL_BEGIN \
if(!strcmp("", args)) {\