Request: BGS / ME Fade Control (Fade in and out)

Good Morning / Day / Afternoon / Evening everyone.

I have a request for a certain kind of snippet

I would like to have more control on fading BGS' and ME audio.

Is this possible to achieve?

Any help is appreciated.
You can use
Ruby:
RPG::BGS.fade(time)
RPG::ME.fade(time)
respectively inside the script section in the event window or in any script. Time being the amount of frames.
Aren't those only for fading out?

I would like to also be able to fade these in.

EDIT

nevermind I found what I was doing wrong, silly me!

Thank you so much for this and sorry for the inconvenience.
more control on fading BGS' and ME audio
Is this for Fading in and not out?
RPG Maker Source has an Audio Fade In script that handles BGM, BGS, and ME

Original thread: https://forums.rpgmakerweb.com/threads/request-bgs-me-fade-control-fade-in-and-out.136334/