Dynamic range compression
Reducing level differences when a signal crosses a chosen threshold.
Control movement, preserve purpose
A compressor responds to level over time. Threshold decides when it starts working; ratio, attack and release influence how strongly and how quickly. It can keep a part present, change a drum envelope or shape a whole group. Those are different goals that deserve different settings.
Compression cannot decide which instrument should lead a section. Start with balance and arrangement, then compress a part whose level movement still causes a problem.
Hear the gain reduction
Choose a part with occasional loud peaks and set a modest ratio. Lower the threshold until the compressor responds mainly to those peaks. Match the processed output level to the bypassed level, then compare across a whole phrase.
If every note becomes equally flat, back off or use a fader ride. If the compressor makes a drum lose its front edge, the attack may be too fast for your goal.
Related entries
Further reading
These source links provide technical background; the exercises above are Eidolon's own editorial guidance.