KSTR
Major Contributor
@pkane, I think it depends on the use case, so may worth an option parameter?
My thinking is:
I load Ref==Comp, then Show, then apply gain=0.5 (to Comp) deliberately mis-match it.
Linearity should then should show up as a straight horizontal line (== perfectly linear) at -6.02dB as that is Comp's difference to Ref. Comp's level, values are all 6dB down at any Bit level but still a linear mapping.
Or, in my use case: I do a match that obtains a coarse gain for Comp, and then correct the gain by the amount the Linearity is off from 0dB in the region of interest. The initial gain was obtained from minimizing the diff in the first place (rms) but that optimized for a best Null overall and not neccessarily for a best Null in the region of interest.
A workaround, and that's what I did before I discovered the power of the linearity plot, is to do the match only on the quieter sections of the music and then apply it to the whole data but then again we don't know if there is any long enough quiet section (unless I stich some sections together before). Shifting the gain (with the dB value obtained from the plot) was very simple and reliable algorithm no matter the content. And there it was convenient to have the gain change reflected in the plot, also for presentation.
BTW, could you give a short summary how the linearity plot is actually calculated and what signal properties affect it, as that is not immediately clear?
My thinking is:
I load Ref==Comp, then Show, then apply gain=0.5 (to Comp) deliberately mis-match it.
Linearity should then should show up as a straight horizontal line (== perfectly linear) at -6.02dB as that is Comp's difference to Ref. Comp's level, values are all 6dB down at any Bit level but still a linear mapping.
Or, in my use case: I do a match that obtains a coarse gain for Comp, and then correct the gain by the amount the Linearity is off from 0dB in the region of interest. The initial gain was obtained from minimizing the diff in the first place (rms) but that optimized for a best Null overall and not neccessarily for a best Null in the region of interest.
A workaround, and that's what I did before I discovered the power of the linearity plot, is to do the match only on the quieter sections of the music and then apply it to the whole data but then again we don't know if there is any long enough quiet section (unless I stich some sections together before). Shifting the gain (with the dB value obtained from the plot) was very simple and reliable algorithm no matter the content. And there it was convenient to have the gain change reflected in the plot, also for presentation.
BTW, could you give a short summary how the linearity plot is actually calculated and what signal properties affect it, as that is not immediately clear?