The libretto is not always written before the music .
Usually a libretto is written before the music , but sometimes composers wrote some of the music first and then looked for words to go with it .