This procedure covers a wide range of instruments and applications and it's influenced by a lot of factors. However, there is an article on SoundOnSound website that can be accessed through Google Search results, that explains how can you achieve what you've requested. The whole procedure refers to duration, frequency, dynamic range, and other features from this range. Access that page to learn more about this process.