Automating time varying gains in multi-track mixing using a model of loudness and partial loudness