Do you want to record music or audio playing on your PC for free? It's easy and simple than you imagine.
1. Audacity - a free and open source software
2. A PC capable of playing audio
3. Some patience
Official guide from Audacity on how to record desktop audio for free.
You can do this on Windows, Linux and Mac, for free.