Play Bgm in script call

Could someone please take a look at this and maybe point me in the right direction?

Objective: I'm trying to create a Background Music Fade-In effect using the event described in the attached graphic.

Problem:  The event does not play music at any point.

I should also note running this event does not crash the game. It seems to stop any music that is currently playing but will not play the specified music within the for loop. I've also tried solely running AudioManager.playBgm("Theme3",70,100,0); by itself in a script call and it still does not play any music.The file Theme3.ogg does exist in my project's BGM directory so I know it's not a "file does not exist" issue. Lastly, I have tried running AudioManager.playBgm("Theme3.ogg",70,100,0); in the script call but the problem still persists. I am not running any plugins that affect audio.

Edit: $gameInterpreter.wait(frames); doesn't seem to work here either. What would be the proper wait command?

Thank you

BGM.png
BGM is a javascript object

Code:
var myBgm = {  name: "name of bgm",  volume: 80,  pitch: 100,  pan: 100};AudioManager.playBgm(myBgm);
I see now. Thanks alot for the help!
can also be used as AudioManager.playBgm({ name: "name of bgm", volume: 80, pitch: 100, pan: 100});
BGM is a javascript object

Code:
var myBgm = {  name: "name of bgm",  volume: 80,  pitch: 100,  pan: 100};AudioManager.playBgm(myBgm);
Thanks a lot!! this've really helped me!
Time appears to have no meaning in this thread. 😀
well there are necropost rule...
and I actually don't like it... many good thread just bury down around with good knowledge...

@ThePreparator , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/play-bgm-in-script-call.50434/