How to play multiple music tracks in the title screen?

Legend20

Villager
Member
Joined
Jan 26, 2020
Messages
5
Reaction score
2
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

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,633
Reaction score
10,931
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

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,633
Reaction score
10,931
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
965
Reaction score
708
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
49
Reaction score
9
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
5
Reaction score
2
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
49
Reaction score
9
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
5
Reaction score
2
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
49
Reaction score
9
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!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

What can I sing for my sisters birthday...?

>.<'
Well, I'll have you know that I'm still around, looking for opportunity to resurface with some stuffs.
I like to think of Profile Posts as tiny homes, full of all kinds of unsuspecting suckers "future" friends.... Many of which are of course only going to be excited when a strange man in black suddenly shows up to say hi. :LZSexcite:
Stream will be live shortly with some more Haunting Ground! Today, we encounter a new stalker! Feel free to drop by!
Tried the new Samsung Galaxy S20 Plus today. Very nice device overall, but flagship smartphone prices are getting completely out of control.

Forum statistics

Threads
94,504
Messages
921,491
Members
124,362
Latest member
hogogopfu01
Top