Slightly music phase change (DDLC-like).

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
K-PSZH
Regular
Posts: 33
Joined: Sun May 15, 2022 10:34 am
Soundcloud: K-PSZH
Location: Russia
Contact:

Slightly music phase change (DDLC-like).

#1 Post by K-PSZH » Tue Oct 18, 2022 4:26 pm

How can I recreate the system that Dan Salvato did in Doki Doki Literature Club? For the record, "Okay Everyone!" track changed it's phase at certain moments, with a seamless transition from one .ogg file to another. I saw how he implemented it, but the code there is a bit complicated for my understanding, and also I don't need such a complex system.
Missing/forgetting a lot of simplest things and ask about them here.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1882
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Slightly music phase change (DDLC-like).

#2 Post by Ocelot » Tue Oct 18, 2022 6:08 pm

There are several ways. If you have several .ogg files of the same length and you want to transition from one to another, you can sync start position of second file on another channel with fadein and stop original file with fadeout.

Another possibility is to get position of currently playing file and then build string containing partial playback specification and command to play that.
< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]