Change "master volume" via Script Call

I'm working on my own menu system. Would it be possible to change the game's volume via script call?
@KotoYama
Code:
AudioManager.bgmVolume = x
AudioManager.bgsVolume = x
AudioManager.meVolume = x
AudioManager.seVolume = x

x - your value in number
these methods controls volume different sounds, to control strictly master volume use
Code:
AudioManager.masterVolume = r
where r - is real number ranged from 0 to 1
(e.g : 0.1, 0.2, 0.23, etc)
It works great!
Thanks!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/change-master-volume-via-script-call.132478/