If you use a computer to generate songs, there is no creative act, and no copyright.
If you copy a song someone else generated with a computer, there is no creative act, and no copyright.
If you independently write a song, and a computer independently creates an identical song, there is a creative act, and you own the copyright to the song you created (but the song the computer created is in the public domain).
If two people independently write the same song, then they both own the copyrights to their respective songs.