Transfer music from an iPhone, iPad, or iPod to iTunes
1 Launch iMazing and connect your device to your Mac or PC.
2 Select your device in the sidebar, then select “Music”.
3 Select the music you want to export then click Export to iTunes”.
4 Customize your export.
5 Click “Next” for the transfer to initiate.
https://imazing.com/guides/how-to-transfer-music-from-my-iphone-to-itunes
How To Transfer Songs From iPhone To Computer/ iTunes | Copy Music Mac Tutorial | iPod Touch iPad