[Help] How to stop overlapping of music

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
klifton21sg
Newbie
Posts: 10
Joined: Fri Feb 02, 2018 2:17 am
Contact:

[Help] How to stop overlapping of music

#1 Post 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!

AR09FQF-AQ09FRF
Newbie
Posts: 3
Joined: Sun Jan 21, 2018 9:06 pm
Contact:

Re: [Help] How to stop overlapping of music

#2 Post by AR09FQF-AQ09FRF »

...
Last edited by AR09FQF-AQ09FRF on Thu Mar 01, 2018 4:19 pm, edited 2 times in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: [Help] How to stop overlapping of music

#3 Post 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
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: [Help] How to stop overlapping of music

#4 Post 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
Last edited by Donmai on Thu Mar 01, 2018 8:41 pm, edited 1 time in total.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: [Help] How to stop overlapping of music

#5 Post 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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

klifton21sg
Newbie
Posts: 10
Joined: Fri Feb 02, 2018 2:17 am
Contact:

Re: [Solved] How to stop overlapping of music

#6 Post by klifton21sg »

Thanks guys, got it to work after checking out viewtopic.php?p=475994#p475994

Post Reply

Who is online

Users browsing this forum: Dark79