Study proves how music regulates mood