wiki/pages/_it-IT/twilightmenu/custom-dsi-3ds-sfx.md
2021-06-22 18:39:46 -05:00

4.5 KiB

lang layout section category title description
it-IT wiki twilightmenu customization DSi/3DS Skins - Custom SFX Come utilizzare musica di sottofondo ed effetti sonori personalizzati nelle skin DSi e 3DS per TWiLight Menu++

TWiLight Menu++ supports custom sound files in themes. Place your sound files under the sound subdirectory in your theme folder, for example for the white theme, you would place the files at themes/white/sound/sfx.bin and themes/white/sound/bgm.pcm.raw respectively. Entrambi i file sono opzionali, se uno manca verrà usata la musica predefinita. Successivamente dovresti cambiare l'opzione audio nelle impostazioni a "Theme".

Queste istruzioni presuppongono che tu abbia devkitPro installato con mmutil. Puoi scaricare devkitPro sul sito ufficiale devkitPro website.

Raccolta di Effetti Sonori

La raccolta degli effetti sonori contiene effetti come il suono selezionato dall'icona, ecc.

File Descrizione
startup.wav Riprodotto all'avvio. Vedi la sezione suono di avvio per maggiori dettagli
back.wav Indietro
launch.wav Riprodotto quando si avvia una partita
select.wav Riprodotto quando si sposta il cursore
wrong.wav Riprodotto quando si raggiunge la fine della pagina
switch.wav Riprodotto quando si cambia pagina
stop.wav Riprodotto sul tema DSi quando il cursore smette di muoversi
bgm.pcm.raw Non fa parte della raccolta suoni. Vedi la sezione Menu BGM per maggiori dettagli

È quindi possibile eseguire make per creare la raccolta dei suoni. Tutti i file elencati sopra, tranne bgm.pcm.raw sono richiesti, ma è possibile renderli silenziosi.

Il risultato sfx.bin deve essere inferiore a 512000B = 512 kB. Se più grande, quest'ultimo si tradurrà in crash o alcuni suoni non si riprodurranno completamente.

Suono d'avvio

Mentre gli altri effetti sonori funzioneranno con qualsiasi file WAV, il suono di avvio deve essere in un formato specifico per funzionare correttamente, altrimenti ci sarà un divario tra quando il suono di avvio si ferma e la musica di sottofondo inizia.

Il file startup.wav deve essere 16 bit 16 kHz. È possibile utilizzare Audacity per esempio per convertire in questo formato. Una volta caricato il file in Audacity, cambia il Project Rate (Hz) a 16000, quindi premi Shift+M e cambia il Format a PCM a 16 bit.

Se il tuo file è stereo, dovresti andare anche in Tracks > Mix > Mix Stereo down to Mono.

È necessario impostare PlayStartupJingle=1 nel tuo theme.ini per avviare il jingle da riprodurre.

Menu BGM

Menu BGM needs to be a 16-bit 16 kHz Mono raw PCM file. Below are two methods for converting audio files into that format.

Unlike sfx.bin, bgm.pcm.raw can be arbitrarily large.

ffmpeg

The simplest way to convert music for use in TWiLight Menu++ is to run this ffmpeg command in a terminal:

ffmpeg -i [input file] -f s16le -acodec pcm_s16le -ac 1 -ar 16k bgm.pcm.raw

Replace [input file] with the name of the file you want to convert. You can usually do this by simply dragging the file onto the terminal window with the cursor in the correct location.

Audacity

If you don't want to use the command line you can also convert using Audacity.

To convert the audio:

  1. Load the file in Audacity
  2. If your file is in stereo, click on the song then select Tracks > Mix > Mix Stereo down to Mono
  3. Change the Project Rate (Hz) in the bottom left to 16000

To export in the correct format:

  1. Select File > Export > Export Audio...
  2. Set File Type to Other uncompressed files
  3. Set Header to RAW (header-less)
  4. Set Encoding to Signed 16-bit PCM
  5. Set the output name to bgm.pcm.raw and click Save
  6. Click OK to the metadata editing

Now you have a bgm.pcm.raw file that can be copied to the sound subfolder in your theme folder.