There are generally two possibilities
1. Write the lyrics first and then compose the music. The composer will make corresponding changes according to the rhythm of the lyrics, but he will discuss and coordinate with the lyricist!
2. Come up with the music first and then fill in the lyrics. Fill in the lyrics according to the artistic conception and requirements of the melody. Nowadays, most music creation is done in this way!
Because the lyrics come first and the music is not smooth, a few works can be popular
Ethnic military-themed songs are more commonly used.
Pop music generally has the music first and then the lyrics, so the melody is more pleasant to the ear!
Usually the songwriters and creators work together to create and produce
Many of them are partnerships, and it is easy not to cooperate with outsiders
Do you understand?