Hi Bob
Its not been a good day! I started off using the peak compressor module in my project but it has a mute function that cuts the amplification for very low input signals that is not mentioned in the documentation. I also need a real time indication of compression that I was getting by using a stereo compressor and putting a 5:23 format "1" through the compressor to see what it was doing. I then discovered that if you change the delay value to anything but '0', the compressor does not recover but stays at the last amplitude!
After much testing I decided the Peak Compressor module it was not good enough. I then started making a compressor from component parts and hit on this jem with the division. It looks like a scaling problem - I will need to make sure the numbers for the division do not amplify errors in the way the division is implemented and then scale the result after the division is completed.
Thanks for your help with this - I would have got there eventually but you hit the nail on the head. I think I will go home and try again tomorrow.
Regards
John