Thanks for your answer, Martin. It turns out that it is related to a third party plugin, in this case Arturia Analog Lab. Every other instrument I tried resulted in a perfectly normal audio file. I will contact Arturia to see if they can shed any light on it. I really like the pianos included in that plugin, so I hope they can help me. Thanks again, Martin. I'm saving what you wrote because it's good knowledge to have.