Ok, the formula to get log values from linear is unique: e^((ln(max)-ln(min))*x+ln(min)) for all x out of [0,1]
(thanks to fundamental from ZynAddSubFX for the advice). But there comes the problem: We need to know min and max. E.g., if we connect an LP2 to the Peak Controller, the peak controller needs to know min and max, which might be 4 Hz and 20 kHz. AFAIK the Peak controller should not be allowed to know these values. Just imagine what happens if you append two effects to the Peak Controller with different logscales... So should we do the scale in the effect? Sounds good at first. Ladspa-Plugins give a hint that they are logarithmic, and in this case, one could add an additional knob which takes linear input and sends it as logarithmic. But having 2 wheels is a design issue: What if one controller controls the log wheel and one the linear? So to sum it up, I'd suggest to make the *connection* (neither the effect, nor the peak controller) scaling: When you select "connect", you can choose logarithmic, if the plugin thinks this is sane. Maybe you should not even be able to chose, let's just force the user to use log conversion in order to control LP2s? Can someone follow? Do you think this is good or not? ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ LMMS-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lmms-devel
