AidaDSP / aidadsp-lv2

Aida DSP's audio plugins in lv2 format
GNU General Public License v3.0
35 stars 9 forks source link

input/output gain read from json should be in dB #19

Closed falkTX closed 1 year ago

falkTX commented 1 year ago

right now the gain compensation uses a coefficient, but that not something commonly used for users. best to use dB as unit and do the conversion to a coefficient ourselves. basically...

            if (model_json["out_gain"].is_number()) {
                output_gain = DB_CO(model_json["out_gain"].get<float>());
            }
            else {
                output_gain = 1.0f;
            }