From 1891ded0e520b5f7ca580df2a8b7360565e92b08 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Sun, 21 Jan 2024 22:48:38 +0100 Subject: [PATCH] Fixes #320: Add log property to gain ports --- src/makerdf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/makerdf.cpp b/src/makerdf.cpp index 9f782534b..1be8b8da2 100644 --- a/src/makerdf.cpp +++ b/src/makerdf.cpp @@ -157,7 +157,8 @@ static bool add_ctl_port(string &ports, const parameter_properties &pp, int pidx } else if (type == PF_INT || type == PF_ENUM_MULTI) ss << ind << "lv2:portProperty lv2:integer ;\n"; - else if ((pp.flags & PF_SCALEMASK) == PF_SCALE_LOG) + else if ( (pp.flags & PF_SCALEMASK) == PF_SCALE_LOG + || (pp.flags & PF_SCALEMASK) == PF_SCALE_GAIN) ss << ind << "lv2:portProperty epp:logarithmic ;\n"; ss << showpoint; if (!(pp.flags & PF_PROP_OUTPUT))