Without schematics on hand, all I can do is guessing!
Since the piano LINE-OUT negative is connected to ground, and you're using single power supply to drive both the piano and the amp, so both unit the ground will be connected together by the power supply negative lead.
I also saw your last post at diyaudio, you mentioned disconnected the mini amplifier from everything (PSU and line in cable) and the GND of the line in is connected to GND of PSU (0 ohm resistance). If that is the case, you don't need another ground lead from the piano line-out to the mini amp line-in and the capacitor at all.
Just simply disconnect the capacitor from the ground and see if the piano signal can pass thru.
If disconnect the capacitor didn't work, maybe you can try solder the bipolar cap one lead on the mini amp line-in negative, the other lead solder to the ground of the mini amp board, and see if the humming noise reduced.