How to copy music from my itunes to my computer?

I have alot of songs on my itunes from my old iphone and I can't seem to find the files on my computer saved anywhere. I tried plugging in my iphone to maybe copy and paste the songs onto my computer but the only way to view the songs is through itunes. My ultimate goal is to put all these songs on my new samsung phone. Any ideas?

First take another mobile and keep memory as your iphone. From your mobile send all song's to another mobile.

Depending on your setup… There should be a folder called iTunes in your music folder. In that folder there should be another folder containing your music. I once had to get a third party software to transfer some files from iPod because iTunes wasn't working.