This is so good! I'm very curious what determines the rating because it's quite accurate actually.
I notice a small bug: if you don't touch any note, you're going to get stuck on the "play your piece" screen forever.
Great job!