Thanks for replying. Tried your suggestion and it came back saying that pygame was already installed. Have also done a apt-get update and a apt-get upgrade which did take a long time but did not help even after a reboot to ensure that it was all recognised.
Good news I now have a working pianohat. It would appear that running the apt-get upgrade has sorted the problem but also appears to have set the volume on the pi to zero. I found this out when I checked that I could still get music to play. You can imagine my embarrassment when I found that no sound was coming out. That will teach me to check the fundamentals after running the apt-get upgrade command.
Thanks anyway alphanumeric for your help. Off now to try to grips with the mini keyboard.
That stuff happens. Main thing is its now working.
Those mini keyboards can be fun. I have one I like for quick stuff, it has a built in touch pad.
If I’m going to be typing a lot of commands in a terminal window I tend to go hunting for a full sized keyboard.