If you're wanting to preserve much of the dynamic range of your piano track, it's best to try a smoother compression. Try setting the threshold to around -7dB, the ratio at 3:1, the attack at 10ms and the release at around 1,000ms. If you want to make it more aggressive, drop the threshold down and make the ratio 2:1.
What does compression do to a sound?
What Is Compression? Compression is the process of lessening the dynamic range between the loudest and quietest parts of an audio signal. This is done by boosting the quieter signals and attenuating the louder signals.
Is compression bad for music?
Compression keeps the vocal at the right level throughout the tune, or lets them jump out of the mix a little better without being louder; just the right type of compression might make the drums more exciting or intentionally weird. It's all about using the available tools to make great-sounding music.