How to fadein music in the main menu? [SOLVED]

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
User avatar
sasquatchii
Miko-Class Veteran
Posts: 552
Joined: Fri Jul 04, 2014 7:48 am
Completed: A Day in the Life of a Slice of Bread
Deviantart: sasquatchix
Soundcloud: sasquatchii
itch: sasquatchii
Location: South Carolina
Contact:

How to fadein music in the main menu? [SOLVED]

#1 Post by sasquatchii »

Hello! I just added a song to my main menu, using this lovely bit of code in the options.rpy file:

Code: Select all

config.main_menu_music = "music/Sergey_Cheremisinov_Forgotten_Stars.mp3"
However, it starts off pretty loud and I was wondering if it would be possible to use a fadein music/sound effect with Ren'Py! I tried adding "fadein 1.0" right after the bit of code but I got an error from Ren'Py after I tried to do that :(

Any ideas or help would be much appreciated!
Last edited by sasquatchii on Fri Jun 16, 2017 11:38 pm, edited 1 time in total.
ImageImage

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How to fadein music in the main menu?

#2 Post by trooper6 »

You could always download Audacity (which is free) and add a fade in to you music file sharing that it is exactly as you'd like it.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
sasquatchii
Miko-Class Veteran
Posts: 552
Joined: Fri Jul 04, 2014 7:48 am
Completed: A Day in the Life of a Slice of Bread
Deviantart: sasquatchix
Soundcloud: sasquatchii
itch: sasquatchii
Location: South Carolina
Contact:

Re: How to fadein music in the main menu?

#3 Post by sasquatchii »

trooper6 wrote:You could always download Audacity (which is free) and add a fade in to you music file sharing that it is exactly as you'd like it.
Wow, that is such a simple and obvious answer I feel kind of embarassed for not thinking of it before asking for help. I like this a lot too because the level of control and ability you have to edit things in audacity is amazing.

I just used the fadein in audacity and reuploaded to Ren'Py and it totally works! Thank you trooper6.
ImageImage

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How to fadein music in the main menu? [SOLVED]

#4 Post by trooper6 »

My pleasure!
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: No registered users