Surprisingly I figured the piano puzzle out myself and then got stumped on the keypad code afterwards. Getting to the secret area only made it worse as I thought the code had to do with countable things in the rooms shown on the cameras on the laptop.
I haven't thought about putting the letters on the knife into the pad as I did previously with the wall-safe above the bed.
Now there are already many explanations for the piano puzzle but they all sound too complicated. Let me try to explain it easier for future players...
Example:
The paper from under the table says
L (15) L (7) L (20)
R (5) R (24) R (6)
5, 1, 6, 3, 4, 2
You play the top numbers in the bottom order, which would be
R (24) L (15) R (6) L (20) R (5) L (7)
L means you play the #th key from the LEFT
(the piano keys are numbered up to 52 from left to right, so it's easy to find the L's)
R means you play the #th key from the RIGHT
(you'll have to count backwards, 52=1, 51=2, 43=10, etc. R24 would be the 24th from the right, or the 29th from the left)
The slashes and order are different each playthrough, so if you want the 5min medal you'll have to learn how to read the paper sheet. Luckily you can take it with you and view it while playing the piano, so you don't have to learn the sheet by heart.
I hope this helps anyone struggling there in the future, good luck!