Page 1 of 1

[Help] How to stop overlapping of music

Posted: Thu Mar 01, 2018 5:24 am
by klifton21sg
Hi guys, need some help here, I am trying to get my main menu music to start playing from my splash screen all the way to my main menu. In order to do so, I disabled this from Options.rpy:
##config.main_menu_music = "menu music.mp3"
However I realized that if I do this then the main menu music no longer plays after I transit from the game to the main menu but if I enable it then the main menu music overlaps the starting music from the splash screen.
Could anybody teach me how to resolve this problem? Thanks!

Re: [Help] How to stop overlapping of music

Posted: Thu Mar 01, 2018 5:44 am
by AR09FQF-AQ09FRF
...

Re: [Help] How to stop overlapping of music

Posted: Thu Mar 01, 2018 6:50 am
by Imperf3kt
You may need to edit the corresponding screens to include something like
On show Play 'song.mp3'
On hide Stop 'song.mp3'

I may have the cases wrong

Re: [Help] How to stop overlapping of music

Posted: Thu Mar 01, 2018 11:35 am
by Donmai
klifton21sg wrote:
Thu Mar 01, 2018 5:24 am
I am trying to get my main menu music to start playing from my splash screen all the way to my main menu. In order to do so, I disabled this from Options.rpy:
##config.main_menu_music = "menu music.mp3"
No need to do that. See here: viewtopic.php?p=475994#p475994

Re: [Help] How to stop overlapping of music

Posted: Thu Mar 01, 2018 4:02 pm
by Imperf3kt
To be more clear about mp3 files, you should convert the lossless source (if available) to ogg vorbis. Otherwise just use them as is.
MP3 is a lossy compressed format (it compresses data by deleting bits you theoretically cannot perceive). Ogg is also lossy, by converting lossy to lossy, you are degrading the sound quality and if you do it enough or start with a poor enough source, entropy/generation loss ensures you get a terrible sounding audio file.

Re: [Solved] How to stop overlapping of music

Posted: Thu Mar 01, 2018 11:31 pm
by klifton21sg
Thanks guys, got it to work after checking out viewtopic.php?p=475994#p475994