Is “whenever the music was playing, there was a huge crowd of people dancing” an relative clause

Yes, "whenever the music was playing" is a relative clause in this sentence. It provides additional information about the main clause "there was a huge crowd of people dancing."