wiki/pages/_he-IL/twilightmenu/custom-dsi-3ds-sfx.md
2024-01-08 15:29:21 -06:00

68 lines
5.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
lang: he-IL
layout: wiki
section: twilightmenu
category: customization
title: סקינים לDSi/3DS - התאמה אישית של SFX
description: כיצד להשתמש במוזיקת רקע מותאמת אישית ואפקטי סאונד בסקינים של DSi ו3DS עבור TWiLight Menu++
---
TWiLight Menu++ תומך בקבצי שמע מותאמים אישית בערכות הנושא. מקמו את קבצי השמע שלכם בתת התיקיה `sound` שבתיקיה ערכת הנושא שלכם, למשל עבור ערכת הנושא `white`, תמקמו את הקבצים ב`themes/white/sound/sfx.bin` וב`themes/white/sound/bgm.pcm.raw` בהתאמה. Both files are optional, if `bmg.pcm.raw` is missing, the default music will be used. The same thing would happen with the sound effects if `sfx.bin` is missing as well.
הוראות אלו מניחות שיש לכם את devkitPro מותקן עם mmutil. ניתן להשיג את devkitPro ב[אתר האינטרנט של devkitPro ](https://devkitpro.org/wiki/Getting_Started).
## בנק אפקטי צליל
The sound effect bank (`sfx.bin`) contains sound effects such as the icon select sound, etc.
| קובץ | תיאור |
| ----------- | ---------------------------------------------------------------------- |
| startup.wav | מושמע בהפעלה. ראו את הפרק [צליל הפעלה](#startup-sound) למידע נוסף |
| back.wav | חזור |
| launch.wav | מושמע בהפעלה משחק |
| select.wav | Played when moving the cursor in the per-game settings and select menu |
| wrong.wav | מושמע בהגעה לקצה העמוד |
| switch.wav | מושמע בהעברת עמודים |
| stop.wav | מושמע בערכת הנושא DSi כאשר סמן הבחירה מפסיק לזוז |
All the files listed above are required to build a custom sound effect bank. If you want a sound to be mute, you can use a silent audio file. The `.wav` format is mandatory and the encoding *must* be PCM.
[This file](/assets/files/sfx-example.zip) includes the sounds used in the default DSi and 3DS themes, along with the makefile used to build them into a valid sfx.bin file. Feel free to edit and change the sound files to make a custom sound effect bank.
To build your custom sound effect bank, open your terminal (or command line if you are using Windows), change the current directory (`cd`) to the folder where `Makefile` is, and then run the `make` command. You will get a resulting `sfx.bin` file that can be copied to the `sound` subfolder in your theme folder. **This file must be under 512000B = 512 kB**. Any file larger than that will result in either crashes or some sounds not playing fully.
### צליל הפעלה
While the other sound effects will work with any WAV file with PCM encoding, the startup sound must be in a specific format in order to work properly, otherwise there will be a gap between when the startup sound stops and the background music begins.
The startup.wav file must be **16-bit 16 kHz**. You can use [Audacity](https://github.com/audacity/audacity/releases/latest) for example to convert to this format. Once the file is loaded in Audacity, change the **Project Rate (Hz)** to **16000**, then press **Shift+M**, and change the **Format** to **16-bit PCM**.
If your file is in Stereo, you should also go to **Tracks > Mix > Mix Stereo down to Mono**.
You must set `PlayStartupJingle=1` in your `theme.ini` for the startup jingle to play.
## מוזיקת רקע בתפריט
Menu BGM needs to be a **16-bit Mono** `.wav` file. Below is the method for converting audio files into that format.
Unlike `sfx.bin`, `bgm.wav` can be arbitrarily large.
Please note that if your audio file already comes as a `.wav` file, you must follow the below method anyways, as TWLMenu++ has specific requirements.
### Audacity
To get started, download [the latest version of Audacity](https://github.com/audacity/audacity/releases/latest).
To convert the audio:
1. טענו את הקובץ בAudacity
1. אם הקובץ שלכם בסטריאו, לחצו על השיר ובחרו ב`Tracks` > `Mix` > `Mix Stereo down to Mono`
1. Go to `Audio Setup` > `Audio Settings...`, and make sure the `Project Sample Rate` is not set to be above `48000 Hz` (which is the limit)
To export in the correct format:
1. בחרו ב `File` > `Export` > `Export Audio...`
1. Set `Save as type` to `WAV (Microsoft)`
1. Set `Encoding` to `Signed 16-bit PCM`
1. Set the output name to `bgm.wav` and click `Save`
1. Click `Clear` and then click `OK` to the metadata editing
Now you have a `bgm.wav` file that can be copied to the `sound` subfolder in your theme folder.
You should then set the `DSi/3DS Theme Music` option in TWiLight Menu++ settings to "Theme" for your custom BGM to play on the menu.