An Audacity plugin exists to do that, see … Can I Automatically EQ track to Desired Frequency Response? - #4 by Trebor