Legend20

Villager
Member
Joined
Jan 26, 2020
Messages
12
Reaction score
4
First Language
English
Primarily Uses
RMMV
I'm wondering if there's a way to play several different tracks of music on the title screen at once, and let the music automatically fade-in and fade-out, so the next track comes in nice and easy. Is there a way to do this? Or maybe a free plugin that can help? Newbie btw.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,726
First Language
English
Primarily Uses
RMVXA
As far as I am aware this cannot be done purely in the editor. However, I am leaving this here in case I'm wrong. If it turns out that you do in fact need a plugin, please Report this post and ask for the thread to be moved ot JS Plugin Requests.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,726
First Language
English
Primarily Uses
RMVXA

I've moved this thread to JS Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.

 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
857
First Language
English
Primarily Uses
RMMV
@Legend20 Updated my plugin Conditional Title Music to version 1.17 to allow the usage of common events on the title screen. You can use that to create a customized audio play list.

Within the setup of the plugin, go into 'Play List', and create a single entry. Within the entry go into the 'Event List' and select the common event you want to use, then go back and set the 'Play Condition' to : true. Now that event will always run when the title screen loads up.

The following is an example of how to fade in and fade out two BGM files within that common event :

Code:
◆Comment:// Create Label to Return to Later ...
◆Label:bgmStart
◆Comment:// Play BGM A
◆Play BGM:Some-Dreamy-Place_Looping (0, 90, 0)
◆Comment:// Fade-In BGM A (2 Seconds)
◆Script:AudioManager.fadeInBgm(2);
◆Play BGM:Some-Dreamy-Place_Looping (45, 90, 0)
◆Comment:// Wait on bgmBuffer (2 Seconds)
◆Wait:125 frames
◆Comment:// Wait for BGM A to Reach [30 Seconds]
◆Loop
  ◆If:Script:AudioManager._bgmBuffer.seek() >= 30
    ◆Break Loop
    ◆
  :End
  ◆Wait:1 frame
  ◆
:Repeat Above
◆Comment:// Fade-Out BGM A (2 Seconds)
◆Fadeout BGM:2 seconds
◆Comment:// Wait for Fade-Out (2 Seconds)
◆Wait:125 frames
◆Comment:// Play BGM B
◆Play BGM:Unforgiving-Himalayas_Looping (0, 90, 0)
◆Comment:// Fade-In BGM B (2 Seconds)
◆Script:AudioManager.fadeInBgm(2);
◆Play BGM:Unforgiving-Himalayas_Looping (45, 90, 0)
◆Comment:// Wait on bgmBuffer (2 Seconds)
◆Wait:125 frames
◆Comment:// Wait for BGM B to Reach [30 Seconds]
◆Loop
  ◆If:Script:AudioManager._bgmBuffer.seek() >= 30
    ◆Break Loop
    ◆
  :End
  ◆Wait:1 frame
  ◆
:Repeat Above
◆Comment:// Fade-Out BGM B (2 Seconds)
◆Fadeout BGM:2 seconds
◆Comment:// Wait for Fade-Out (2 Seconds)
◆Wait:125 frames
◆Comment:// Return to Top; Re-Start
◆Jump to Label:bgmStart
 
Joined
Jul 16, 2017
Messages
55
Reaction score
11
First Language
English
Primarily Uses
RMMV
I'm wondering if there's a way to play several different tracks of music on the title screen at once, and let the music automatically fade-in and fade-out, so the next track comes in nice and easy. Is there a way to do this? Or maybe a free plugin that can help? Newbie btw.


It wouldn't be too hard to do outside of RPG Maker. Just use a .wav file editor like Audacity to turn your several tracks into one track.
 

Legend20

Villager
Member
Joined
Jan 26, 2020
Messages
12
Reaction score
4
First Language
English
Primarily Uses
RMMV
It wouldn't be too hard to do outside of RPG Maker. Just use a .wav file editor like Audacity to turn your several tracks into one track.
You make a great point. I'll see if that works.

@Legend20 Updated my plugin Conditional Title Music to version 1.17 to allow the usage of common events on the title screen. You can use that to create a customized audio play list.

Within the setup of the plugin, go into 'Play List', and create a single entry. Within the entry go into the 'Event List' and select the common event you want to use, then go back and set the 'Play Condition' to : true. Now that event will always run when the title screen loads up.

The following is an example of how to fade in and fade out two BGM files within that common event :

Code:
◆Comment:// Create Label to Return to Later ...
◆Label:bgmStart
◆Comment:// Play BGM A
◆Play BGM:Some-Dreamy-Place_Looping (0, 90, 0)
◆Comment:// Fade-In BGM A (2 Seconds)
◆Script:AudioManager.fadeInBgm(2);
◆Play BGM:Some-Dreamy-Place_Looping (45, 90, 0)
◆Comment:// Wait on bgmBuffer (2 Seconds)
◆Wait:125 frames
◆Comment:// Wait for BGM A to Reach [30 Seconds]
◆Loop
  ◆If:Script:AudioManager._bgmBuffer.seek() >= 30
    ◆Break Loop
    ◆
  :End
  ◆Wait:1 frame
  ◆
:Repeat Above
◆Comment:// Fade-Out BGM A (2 Seconds)
◆Fadeout BGM:2 seconds
◆Comment:// Wait for Fade-Out (2 Seconds)
◆Wait:125 frames
◆Comment:// Play BGM B
◆Play BGM:Unforgiving-Himalayas_Looping (0, 90, 0)
◆Comment:// Fade-In BGM B (2 Seconds)
◆Script:AudioManager.fadeInBgm(2);
◆Play BGM:Unforgiving-Himalayas_Looping (45, 90, 0)
◆Comment:// Wait on bgmBuffer (2 Seconds)
◆Wait:125 frames
◆Comment:// Wait for BGM B to Reach [30 Seconds]
◆Loop
  ◆If:Script:AudioManager._bgmBuffer.seek() >= 30
    ◆Break Loop
    ◆
  :End
  ◆Wait:1 frame
  ◆
:Repeat Above
◆Comment:// Fade-Out BGM B (2 Seconds)
◆Fadeout BGM:2 seconds
◆Comment:// Wait for Fade-Out (2 Seconds)
◆Wait:125 frames
◆Comment:// Return to Top; Re-Start
◆Jump to Label:bgmStart
I tried doing this, and it works, but the problem is when I press "Options", ect. It stops the music and when I leave options, it skips to the next song.
 
Joined
Jul 16, 2017
Messages
55
Reaction score
11
First Language
English
Primarily Uses
RMMV
You make a great point. I'll see if that works.

You say you're a newbie so I'll mention you may need to convert .ogg files to .wav files and then back again. Lots of places where you can do that for free online.
 

Legend20

Villager
Member
Joined
Jan 26, 2020
Messages
12
Reaction score
4
First Language
English
Primarily Uses
RMMV
You say you're a newbie so I'll mention you may need to convert .ogg files to .wav files and then back again. Lots of places where you can do that for free online.
Your idea works, but there's a big delay before the music starts, which I'm assuming is because it needs to load the entire file. So about 15 seconds of the player just waiting on the title screen until the music appears. Do you have any idea to get rid of the delay? Or make it pay sooner?
 
Joined
Jul 16, 2017
Messages
55
Reaction score
11
First Language
English
Primarily Uses
RMMV
Your idea works, but there's a big delay before the music starts, which I'm assuming is because it needs to load the entire file. So about 15 seconds of the player just waiting on the title screen until the music appears. Do you have any idea to get rid of the delay? Or make it pay sooner?


I haven't had any delay issues, but apparently lots of other folks have.

Some possibilities:


I'd be interested to know if any of these work for you.

Cheers!
 

Latest Threads

Latest Posts

Latest Profile Posts

I wrote RPGMakerMZ JavaScript reference in Japanese.
But I think you'll be able to read it through the translator.

back in April of 2019, I watched my friend's art stream on twitch. that was when I got inspired to draw most of the assets for my game. it's been a LONG journey since, but totally worth it.
RPG MZ multiplayer in development
Square-Enix, why you didn't released the classic Dragon Quests on Steam yet? :kaocry:
This is by far my most favorite boss monster I've made, its name is Gosck

Forum statistics

Threads
109,139
Messages
1,042,480
Members
141,646
Latest member
Twigsmcsquids
Top