Skip to main content

Audio

MahiruAbout 1 min

Audio

Playing Background Music (BGM)

Playing background music is extremely simple, you just need to put the background music in the bgm folder, and then use the bgm instruction to play the background music.

bgm:Summer_Shadow.mp3;

You can set a -volume parameter for the background music to adjust its volume.

bgm:Summer_Shadow.mp3 -volume=30;

In addition, you can also use the -enter parameter to fade in the playback.

bgm:Summer_Shadow.mp3 -enter=3000;

Finally, you can use the following statement to fade out the background music.

bgm:none -enter=3000;

Tips

-volume and -enter are both optional parameters.
When -volume is not used, or a value other than 0 to 100 is used, the default value of 100 will be used.
When -enter is not used, or a value other than 0 to is used, the default value of 0 will be used.

Playing Voice

As we all know, the most attractive part of visual novels is often their excellent voice acting. Put the voice acting file in the vocal folder, and then add the -Voice file name parameter in the dialog script to play the voice. The syntax is as follows.

Hachiman Hikigaya:Just arrived -V3.ogg;

When talking continuously, the way the voice is introduced is the same.

Yukino Yukinoshita:You're here early -V1.ogg;
Sorry, have you been waiting long? -V2.ogg;

At the same time, you can set a -volume parameter to adjust its volume.

Hachiman Hikigaya:Just arrived -V3.ogg -volume=30;

Tips

-volume is an optional parameter.
When -volume is not set, or a value other than 0 to 100 is used, the default value of 100 will be used.

Playing Sound Effects

After putting your dubbing into the vocal folder, you can use the playEffect instruction to play the sound effects_

playEffect:xxx.mp3;

You can set a -volume parameter for the sound effect to adjust its volume.

playEffect:xxx.mp3 -volume=30;

Tips

-volume is an optional parameter.
When -volume is not set, or a value other than 0 to 100 is used, the default value of 100 will be used.

Sound Effect Loop

Giving the sound effect an id will automatically enable the sound effect loop, and the same id will be used to stop it later.

playEffect:xxx.mp3 -id=xxx;
playEffect:none -id=xxx; // Stop this looping sound effect

Unlock Audio for Appreciation

Use unlockBgm to unlock the audio in the audio appreciation.

; // Unlock bgm and give it a name
unlockBgm:s_Title.mp3 -name=Smiling-Swinging!!!;