Lost all of my iTunes Songs?

So I Erased/Recovered my Mac and didn't back up my iTunes songs right (The may have been a bit pirated.) so now I lost almost all of them on my computer but I still have them on my phone, So is there a way I can send all the songs on my iPhone to my computer or if I try to sync it will they delete all the songs on my phone? If I have to I can just go back and re-dowload them but I just want to know if there's a faster way.

Don't worry. There's an app for that.

  • Transfer all songs from an iPhone to iTunes? I had somehow managed to delete all my songs from my computer and thus, they were deleted from iTunes as well. However, I still have all of the songs on my iPhone and I was wondering if there was a free yet efficient way to transfer all of my songs from my phone to iTunes again. I have the 4s, if that will help any.
  • Purchased songs lost after reinstalling iTunes? I had to delete iTunes today then reinstall it because my iPhone wasn't being detected under Devices. I easily transferred my purchased songs from my phone's iTunes but the purchased ringtones I had aren't there anymore. They don't show up in the Tones section of anything. I checked my iTunes purchase history and they're clearly there. So how do I get them back or find them?
  • My itunes lost all my songs put on from Cd? I'm ready to pull my hair out. While i was syncing my iphone i realized that the Cd i had put on the day before was not transferring to my iphone so i did some playing around with my itunes and all my songs that i have put on through Cd are completely gone over 400 songs. Is there anything i can do to get it back because it will take a very long time ( time i don't have) in order to get them back.
  • My iphone has lost all its songs? I have not synced my for like 2 years and the other day i updated my iphone on my friends pc cause my pc broke. It synced it and i lost all my songs. Is there any way to get them back?