hi community i need to build an automatic gain controller that preserves dynamic range. it suppose to perform compression and makeup gain to preserve dynamic range but boost up the volume as much as possible. the thing is, how to measure dynamic range. anybody has any idea? that was why i asked about the rms ihp to understand how much of a window i can sum up. the general idea was to take the measurement of (max(rms_10ms) / rms_1sec ) along one second. but its shaky and not as robust as i imagined. the best thing would be a true LUKS or LUFS, the "official" loudness measurement. but its doesnt exist in csound. any help is appreciated.