Homebrew How can I change the background music of TWiLight Menu ++?

Sam_TX

Member
OP
Newcomer
Joined
Oct 9, 2018
Messages
14
Trophies
0
Age
23
XP
119
Country
Guatemala
I followed all the steps in the tutorial to create a custom song, but when I run the SoX program, the program closes without making any changes to the song that I had already edited in Audacity (SoX only opens a cmd window but instantly closes) Also try dragging the song to the SoX exe but it doesn't work either and it keeps closing without doing anything, I'm trying to run the program in windows 7, I don't know if there will be an alternative to that program to do the final step to create the bgm.pcm.raw
 

Pk11

A catgirl with a DSi
Member
Joined
Jun 26, 2019
Messages
1,285
Trophies
1
Age
22
Location
米国
Website
xn--rck9c.xn--tckwe
XP
3,905
Country
United States
You need to run
Code:
sox menu.wav --bits 16 --rate 16000 --encoding signed-integer --endian little bgm.pcm.raw
from the command line in the folder with your "menu.wav" file.
(in windows 7 you can do this by just pasting that in the File Explorer address bar in the folder with menu.wav and pressing Enter)

(the command is from the Makefile of an included song, here)
 

Sam_TX

Member
OP
Newcomer
Joined
Oct 9, 2018
Messages
14
Trophies
0
Age
23
XP
119
Country
Guatemala
I cannot run this command that way (copying it to the address bar of the file explorer in windows 7, I don't know how it will be run from the file explorer, since when pasting it in the address bar and pressing enter only sends me to Chrome to look for the command and it doesn't execute it, don't you mean to execute it in the command prompt?) I don't know if you have to edit the makefile with just that command and execute it with SoX, or dragging it, I've Tried that way and it didn't work either, also edit the batch example file that is in the SoX folder, and likewise it doesn't convert the menu.wav file, so I don't know what SoX file needs to be edited to get the bgm.pcm.raw, according to the tutorial with SoX installed, you have to run the "make" file, I don't know if it refers to the "Makefile" completely, maybe I'm doing something wrong, sorry for my ignorance, I don't have much knowledge to run commands :c
 

flzmx

pull requested once
Member
Joined
Nov 12, 2016
Messages
123
Trophies
0
XP
234
Country
United States
Looking at the wiki, it seems that replacing the menu.wav with your custom menu.wav and then running `make bgm.pcm.raw` is the intended method of making custom song. The command that was sent before should work if you execute it in a command prompt, it does the same exact thing the Makefile would do. You also don't have to edit any Makefile.
If you're going the route of replacing the file and using TWiLight's resources Makefile, you might want to run `make clean` first.
 
  • Like
Reactions: Sam_TX

Sam_TX

Member
OP
Newcomer
Joined
Oct 9, 2018
Messages
14
Trophies
0
Age
23
XP
119
Country
Guatemala
Looking at the wiki, it seems that replacing the menu.wav with your custom menu.wav and then running `make bgm.pcm.raw` is the intended method of making custom song. The command that was sent before should work if you execute it in a command prompt, it does the same exact thing the Makefile would do. You also don't have to edit any Makefile.
If you're going the route of replacing the file and using TWiLight's resources Makefile, you might want to run `make clean` first.
Ok, i replaced the menu.wav, but how to run the "Makefile" that is in the "dsimenu" folder? (you say that i have to run the "make bgm.pcm.raw" but such a file does not exist, unless you mean rename the original "Makefile"?) and try to run it with SoX, and also tried changing the extension of the "Makefile" to .bat, but neither way made any changes or created the bgm.pcm.raw, and the option to enter the command at the command prompt gives me this error: "sox" is not recognized as an internal or external command, program or executable batch file" :/

--------------------- MERGED ---------------------------

Wait, to run the "Makefile" do I need to have Devkitpro installed? bros I'm an idiot XD I had not read the first part of the wiki which was assumed that I would have to have it installed, I will install it to see if that was what prevented me from executing the "Makefile" xd
 

flzmx

pull requested once
Member
Joined
Nov 12, 2016
Messages
123
Trophies
0
XP
234
Country
United States
The command `make` doesn't exist? That would mean you don't have DevKitPro, yes.
tried changing the extension of the "Makefile" to .bat
The Makefile cannot be run in this way, it is not a batch script and it will not like being run as one.
enter the command at the command prompt gives me this error: "sox" is not recognized as an internal or external command, program or executable batch file"
Add SoX to your path and restart the command prompt.
 
  • Like
Reactions: Sam_TX

Sam_TX

Member
OP
Newcomer
Joined
Oct 9, 2018
Messages
14
Trophies
0
Age
23
XP
119
Country
Guatemala
The command `make` doesn't exist? That would mean you don't have DevKitPro, yes.

The Makefile cannot be run in this way, it is not a batch script and it will not like being run as one.

Add SoX to your path and restart the command prompt.
Ok I already installed the DevKitPro, but now how do I run the "Makefile"? from the MSys2 exe? If it's from there, how would the command go?
 

flzmx

pull requested once
Member
Joined
Nov 12, 2016
Messages
123
Trophies
0
XP
234
Country
United States
Ok I already installed the DevKitPro, but now how do I run the "Makefile"? from the MSys2 exe? If it's from there, how would the command go?
If I remember correctly, you'll have to open a MSYS2 terminal and go into the directory you need to go into.
Also, you'll have to install SoX again. MSYS2 uses pacman, so the command to install SoX is
Code:
pacman -Sy sox
The command for the Makefile is
Code:
make bgm.pcm.raw

If you don't want to deal with MSYS2/DevKitPro then just skip the Makefile, add SoX to your Windows path and run the SoX command, not make.
 
  • Like
Reactions: Sam_TX

Sam_TX

Member
OP
Newcomer
Joined
Oct 9, 2018
Messages
14
Trophies
0
Age
23
XP
119
Country
Guatemala
If I remember correctly, you'll have to open a MSYS2 terminal and go into the directory you need to go into.
Also, you'll have to install SoX again. MSYS2 uses pacman, so the command to install SoX is
Code:
pacman -Sy sox
The command for the Makefile is
Code:
make bgm.pcm.raw

If you don't want to deal with MSYS2/DevKitPro then just skip the Makefile, add SoX to your Windows path and run the SoX command, not make.
I put the SoX install command in MSys2 but it gives me this error: "package not found: sox" what file is the MSys2 looking for? The SoX installer exe, or the already installed exe? What path must that exe be in for MSys2 to find it?
The SoX I put it in the next path: C: \ Windows \ sox-14-4-2, but just like the second way that you say it is without using MSys2 it keeps giving me the error: "sox" is not recognized as an internal or external command, program or executable batch file "
 

flzmx

pull requested once
Member
Joined
Nov 12, 2016
Messages
123
Trophies
0
XP
234
Country
United States
The SoX I put it in the next path: C: \ Windows \ sox-14-4-2, but just like the second way that you say it is without using MSys2
You installed SoX at `C:\Windows\sox-14-4-2`? It seems the usual path is `C:\Program Files (x86)\sox-14-4-2` or `C:\Program Files\sox-14-4-2`. Try those out instead.
As for that, then that means that you can't install it on MSYS2.
 
  • Like
Reactions: Sam_TX

Sam_TX

Member
OP
Newcomer
Joined
Oct 9, 2018
Messages
14
Trophies
0
Age
23
XP
119
Country
Guatemala
You installed SoX at `C:\Windows\sox-14-4-2`? It seems the usual path is `C:\Program Files (x86)\sox-14-4-2` or `C:\Program Files\sox-14-4-2`. Try those out instead.
As for that, then that means that you can't install it on MSYS2.
I had not installed SoX in that path, I had installed it in Program Files (x86), but first I had undertand you that it had to be moved to the Windows folder (I do not understand English perfectly xd), well leaving that aside, I already tried what you tell me to put the SoX in Program Files or Program Files (x86), but still the MSys2 keeps giving me the same error, I already uninstalled the two programs (SoX and DevKitPro) and reinstalled them but the error persists :c I only have the last option you tell me, I do not know if you could give me the steps to execute the command in SoX correctly, I would appreciate it a lot, it is my last option to put my custom song apparently :c
 

flzmx

pull requested once
Member
Joined
Nov 12, 2016
Messages
123
Trophies
0
XP
234
Country
United States
I had not installed SoX in that path, I had installed it in Program Files (x86)
Keep SoX in the folder it was installed in (Program Files (x86)). If you can't figure out how to add things to the path, just access the file directly:
Code:
"C:\Program Files (x86)\sox-14-4-2\sox.exe" menu.wav --bits 16 --rate 16000 --encoding signed-integer --endian little bgm.pcm.raw

Don't use MSYS2 for this command. Just the regular command prompt.
 
  • Like
Reactions: Sam_TX

Sam_TX

Member
OP
Newcomer
Joined
Oct 9, 2018
Messages
14
Trophies
0
Age
23
XP
119
Country
Guatemala
Don't use MSYS2 for this command. Just the regular command prompt.
I already did it, but it sends me this error:
"FAIL formats: can't open the input file 'menu.wav': no such file or directory"
i put it the menu.wav on the sox folder, Where is the menu.wav supposed to go then?
 

flzmx

pull requested once
Member
Joined
Nov 12, 2016
Messages
123
Trophies
0
XP
234
Country
United States
I already did it, but it sends me this error:
"FAIL formats: can't open the input file 'menu.wav': no such file or directory"
i put it the menu.wav on the sox folder, Where is the menu.wav supposed to go then?
Are you in the folder with menu.wav? That's where you're supposed to be.
 
  • Like
Reactions: Sam_TX

Sam_TX

Member
OP
Newcomer
Joined
Oct 9, 2018
Messages
14
Trophies
0
Age
23
XP
119
Country
Guatemala
If music.wav is in the SoX folder, then the folder that you should be in is the SoX folder.
Now it didn't give me any errors, but where is the bgm.pcm.raw supposed to appear? In the SoX folder it is not there, in the command prompt it started automatically the SoX, but it closed instantly, but the command prompt did not give any error. Is it a problem that I am using a 64 bit Windows to run SoX?
 

flzmx

pull requested once
Member
Joined
Nov 12, 2016
Messages
123
Trophies
0
XP
234
Country
United States
Now it didn't give me any errors, but where is the bgm.pcm.raw supposed to appear? In the SoX folder it is not there, in the command prompt it started automatically the SoX, but it closed instantly, but the command prompt did not give any error. Is it a problem that I am using a 64 bit Windows to run SoX?
Sounds like you aren't using the SoX command.
 
  • Like
Reactions: Sam_TX

Sam_TX

Member
OP
Newcomer
Joined
Oct 9, 2018
Messages
14
Trophies
0
Age
23
XP
119
Country
Guatemala
Sounds like you aren't using the SoX command.
Ok i finally did it, but what I did was to make the menu.wav again (I think I made the mistake of not changing the project rate to 16000) I exchanged the new menu.wav with the previous one, but something quite strange happened, since now give the bgm.pcm.raw, but when i put it on the ds it became out with the previous song, not with the new one I had created, well I'm happy with it, maybe later I will try to change the current song as I just did to know what happen, but still, thank you very much for helping me :yay:
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Materia_tofu @ Materia_tofu:
    hey sylv? do you know why gameyob crashes on the EZP?
  • Materia_tofu @ Materia_tofu:
    @SylverReZ forgor to tag lol
  • SylverReZ @ SylverReZ:
    @Materia_tofu, Maybe ask the EZ-Flash team.
  • Materia_tofu @ Materia_tofu:
    maybe tomorrow lol
  • SylverReZ @ SylverReZ:
    You can make a post on the DS forum about your findings, and they'll do their best to respond. They have a GBAtemp account here, you know.
  • Materia_tofu @ Materia_tofu:
    oh ye i made a post i did forget they had an account i prob shouldve tagged them in the post
    tbh
    +1
  • SylverReZ @ SylverReZ:
    @Materia_tofu, Would've been a great idea, because they'll notice.
    +1
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
    Veho @ Veho: Ah, you mean furries.