I know that most of the M4P files are DRM-ed and common converters are incapable of converting. But with a screen recorder, you can record all songs and save to MP3 format.
I use the Apple Music Converter for Mac, it helps me to get rid of the drm protection and convert Apple Music M4P to MP3 with ease. Thanks so much, my friends.
I use the Mac system, AppleMacSoft DRM Converter for Mac software is quite good, I suggest you use it.
Use FoneLab Screen Recorder, which has options to export files as various formats including MP3
If you want to convert M4P to MP3, you can use UkeySoft Apple Music Converter, it can help you convert M4P to MP3.If you want to covnert MP4 to MP3, you can use UkeySoft Video Converter, which allows you convert MP4 video to MP3, AVI, MOV, FLY and other video, audios formats.