[SCM] calf/master: + LV2: spit out epp:logarithmic and epp:rangeSteps

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:38:32 UTC 2013


The following commit has been merged in the master branch:
commit 461b2f301530f942e1b1ace746f854fc9befdfad
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sun Nov 16 22:54:07 2008 +0000

    + LV2: spit out epp:logarithmic and epp:rangeSteps

diff --git a/src/makerdf.cpp b/src/makerdf.cpp
index 22a6eb2..030dc6b 100644
--- a/src/makerdf.cpp
+++ b/src/makerdf.cpp
@@ -237,10 +237,14 @@ static void add_ctl_port(string &ports, parameter_properties &pp, int pidx, plug
     }
     else if ((pp.flags & PF_TYPEMASK) > 0)
         ss << ind << "lv2:portProperty lv2:integer ;\n";
+    else if ((pp.flags & PF_SCALEMASK) == PF_SCALE_LOG)
+        ss << ind << "lv2:portProperty epp:logarithmic ;\n";
     ss << showpoint;
     ss << ind << "lv2:default " << pp.def_value << " ;\n";
     ss << ind << "lv2:minimum " << pp.min << " ;\n";
     ss << ind << "lv2:maximum " << pp.max << " ;\n";
+    if (pp.step > 1)
+        ss << ind << "epp:rangeSteps " << pp.step << " ;\n";
     uint8_t unit = (pp.flags & PF_UNITMASK) >> 24;
     if (unit > 0 && unit < (sizeof(units) / sizeof(char *)) && units[unit - 1] != NULL)
         ss << ind << "ue:unit " << units[unit - 1] << " ;\n";

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list