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

Veteran
Veteran
Joined
Aug 3, 2012
Messages
21,783
Reaction score
11,000
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
21,783
Reaction score
11,000
First Language
English
Primarily Uses
RMVXA
[MOVE]JS Plugin Requests[MOVE][/MOVE][/MOVE]
 

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 Profile Posts

Social distancing extended for another week. Personally I'm cool, but this is depressing.
GOOOOD MOOORNING!
APRIL WILL BE BETTER!
First time I've seen the shelves full in my local shop in a while. Still no soap, though.
RachelTheSeeker wrote on StormyRange's profile.
Hey! Haven't I seen you before? :p Good to see you on a RPG Maker site; am pleasantly surprised. :)
When you really think about it, the Trolley Problem is pretty dumb.

Forum statistics

Threads
95,566
Messages
930,130
Members
125,850
Latest member
CrimsonBlack
Top