A person who writes music.
The composer was practicing the piece of music he wrote.
To 'compose' would be the verb meaning to write a song (or poem).