Lifting straight up, even with a rope and pulley, always takes more force than going up a slanted ramp to the same height.
But if you use the ramp, then you have to exert the force over a greater distance (pull more rope to lift to the same height).
Astonishingly, the product of (force) x (distance) is the same number either way. So without friction, the total amount of work required is the SAME whichever way the piano is lifted.