From a3e73521a5fda9da501f3fe52d1ea0c60a3e6b68 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 ba7aaa2ce..9af3923a4 100644 --- a/src/makerdf.cpp +++ b/src/makerdf.cpp @@ -163,7 +163,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))