Were you writing the music or playing an instrument?  Music class may be on your mind.  If you were sharing music with a friend, you are a creative person who likes to share your inspirations. If you thought the music was distracting, it’s time to turn it down, so you can concentrate on your schoolwork!