Reference Audio Volume

I have a menu in the game where you can change the audio setting of the audio emitter. In the script I have a slider bar and I want the value of the slider bar to be the volume of the music in the game. Any ideas? Am I being clear enough?

What's the 'audio emitter'?

There's at least a couple of ways you can change volume dynamically. You can change the overall volume my modifying AudioListener.volume, and you can change the volume of specific audio sources by changing AudioSource.volume for that instance. If you want to control the music volume separately, you can set the volume for the corresponding AudioSource component based on the value of the 'music volume' slider.