1. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    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
     
  2. Pk11

    Pk11 GBAtemp Regular
    Member

    Joined:
    Jun 26, 2019
    Messages:
    103
    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 and alexander1970 like this.
  3. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    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
     
  4. flzmx

    flzmx pull requested once
    Member

    Joined:
    Nov 12, 2016
    Messages:
    114
    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.
     
    Sam_TX likes this.
  5. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    Country:
    Guatemala
    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" :/

    — Posts automatically merged - Please don't double post! —

    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
     
  6. flzmx

    flzmx pull requested once
    Member

    Joined:
    Nov 12, 2016
    Messages:
    114
    Country:
    United States
    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.
     
    Sam_TX likes this.
  7. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    Country:
    Guatemala
    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?
     
  8. flzmx

    flzmx pull requested once
    Member

    Joined:
    Nov 12, 2016
    Messages:
    114
    Country:
    United States
    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.
     
    Sam_TX likes this.
  9. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    Country:
    Guatemala
    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 "
     
  10. flzmx

    flzmx pull requested once
    Member

    Joined:
    Nov 12, 2016
    Messages:
    114
    Country:
    United States
    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.
     
    Sam_TX likes this.
  11. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    Country:
    Guatemala
    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
     
  12. costlyclick

    costlyclick Member
    Newcomer

    Joined:
    Aug 2, 2018
    Messages:
    40
    Country:
    United States
  13. flzmx

    flzmx pull requested once
    Member

    Joined:
    Nov 12, 2016
    Messages:
    114
    Country:
    United States
    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.
     
    Sam_TX likes this.
  14. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    Country:
    Guatemala
    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?
     
  15. flzmx

    flzmx pull requested once
    Member

    Joined:
    Nov 12, 2016
    Messages:
    114
    Country:
    United States
    Are you in the folder with menu.wav? That's where you're supposed to be.
     
    Sam_TX likes this.
  16. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    Country:
    Guatemala
    What folder do you mean the music.wav should be? because leaving it in the SoX folder gives me the same error
     
  17. flzmx

    flzmx pull requested once
    Member

    Joined:
    Nov 12, 2016
    Messages:
    114
    Country:
    United States
    If music.wav is in the SoX folder, then the folder that you should be in is the SoX folder.
     
    Sam_TX likes this.
  18. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    Country:
    Guatemala
    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?
     
  19. flzmx

    flzmx pull requested once
    Member

    Joined:
    Nov 12, 2016
    Messages:
    114
    Country:
    United States
    Sounds like you aren't using the SoX command.
     
    Sam_TX likes this.
  20. Sam_TX

    OP Sam_TX Member
    Newcomer

    Joined:
    Oct 9, 2018
    Messages:
    13
    Country:
    Guatemala
    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:
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - background, TWiLight, change