Open Digitalone1 opened 1 year ago
Tested a bit more. It happens on lots of db values of various plugins, but only on the minimum limit. At the moment the only one which triggers the warning on both min and max limits is the ALR knee of Limiter plugin.
Is it necessary to print this warning? Or should we silently set to min/max when out of bounds?
I'm in favor of silently ignoring the warnings by default. But it is useful for development reasons to have an easy way to see these warnings when needed while working in the code.
I'm in favor of silently ignoring the warnings by default. But it is useful for development reasons to have an easy way to see these warnings when needed while working in the code.
Sure. Later I will make the PR and you can add a developer flag to show the warnings only on testing builds.
I leave this open to show warnings in set_control_port_value
only on development builds.
Since it has been made for Ladspa, I tried to do it also for LV2 and I got interesting results.
Declared the defaults in the
Port
structure.Retrieve min and max values with
lilv_plugin_get_port_ranges_float
.Then check bounds when applying the new value in
set_control_port_value
:I didn't test it on all plugins, but I started to get warnings on knee values whenever I set
-24
in compressors:(easyeffects:17913): easyeffects-WARNING **: 15:10:26.376: lv2_wrapper.cpp:375 http://lsp-plug.in/plugins/lv2/sc_compressor_stereo value out of minimum limit for port kn (Knee)
Which is related to #2675
But I suspect it's happening also on other controls for other plugins. I should test it more later.
@wwmm Is it necessary to print this warning? Or should we silently set to min/max when out of bounds?