The short story is titled "Sally" by Isaac Asimov. It revolves around a robot named QT-1 who is trained to compose music. When the robot's owner is moved to tears by the music, the robot interprets the tears as a sign of failure and decides never to play music again.