From music that plays over the scenic shots to the music that the characters in a film listen to, it’s all part of the soundtrack. While some people wouldn’t listen to a playlist filled with only instrumental songs from the last film you watched, if that music didn’t exist, the movies would be a different experience.
But how do the composers decide what to write? They have to think over so many things, because the soundtrack gives the film its heartbeat.