Skip to content

Commit

Permalink
Fixes #320: Add log property to gain ports
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Jan 21, 2024
1 parent 231096c commit a3e7352
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/makerdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a3e7352

Please sign in to comment.