Hello everyone, I'm lookng for a tool to extract all the music files of the 10 roms from Pokémon Mini.
I would love any help for doing that
How to extract the sound files from the roms?
- FerozElMejor
- Posts: 6
- Joined: March 11th, 2019, 16:21
-
- Posts: 43
- Joined: November 4th, 2017, 07:39
Re: How to extract the sound files from the roms?
If you have any luck, is it possible for you to share the files on the site? Thanks!
- FerozElMejor
- Posts: 6
- Joined: March 11th, 2019, 16:21
Re: How to extract the sound files from the roms?
Of course, but it seems that no one knows how to get these files, I would love to get they, and then share all the music on youtube and here.Toolshrink wrote:If you have any luck, is it possible for you to share the files on the site? Thanks!
Re: How to extract the sound files from the roms?
Without access to the source code it would be difficult by just looking at the binary data...FerozElMejor wrote:Of course, but it seems that no one knows how to get these files, I would love to get they, and then share all the music on youtube and here.Toolshrink wrote:If you have any luck, is it possible for you to share the files on the site? Thanks!
One way is to run the games via emulator and record all the accesses to the sound registers and timers. That'd produce kind of sound file... You would need to modify the PokeMini for that.
- YasaSheep
- Posts: 205
- Joined: November 20th, 2005, 04:04
- Location: Portland (Also the discord)
- Contact:
Re: How to extract the sound files from the roms?
Honestly it probably wouldn't be terrible to reverse engineer. There's only one way to write sound (movs/lds to the appropriate registers right?? https://www.pokemon-mini.net/documentation/audio/), so search for those ops in the debugger and put breaks on them, then step back to figure out where the data's coming from and how it's finding the start and end of that data. Hopefully an array of offsets somewhere, but if not you'd just need to go to each BGM until you find the pattern.
-
- Posts: 5
- Joined: April 11th, 2019, 01:57
Re: How to extract the sound files from the roms?
I would imagine that all of Nintendo's games use the same code for audio, given that they had some kind of development library; the (small amount of) work I've done reversing Pokémon Tetris from a disassembly has led to some insight on how audio is loaded, but as for extracting it I just read the values out from an emulator into my own ROM.
-
- Posts: 5
- Joined: April 11th, 2019, 01:57
Re: How to extract the sound files from the roms?
After a significant amount of research and reverse engineering: yes, it is in fact possible to extract audio data from ROMs. Minlib (Nintendo's SDK library for the Mini) contains audio playing code using a standard format consisting of note data and some control characters; I've been successful in replacing this data with my own, and I hope to write a converter soon.
- RazorLeafAttack
- PM.net Staff
- Posts: 145
- Joined: May 9th, 2017, 00:58
Re: How to extract the sound files from the roms?
Wow awesome work!
- FerozElMejor
- Posts: 6
- Joined: March 11th, 2019, 16:21
Re: How to extract the sound files from the roms?
Oooh, that's really niceJhynjhiruu wrote: ↑December 20th, 2019, 05:16 After a significant amount of research and reverse engineering: yes, it is in fact possible to extract audio data from ROMs. Minlib (Nintendo's SDK library for the Mini) contains audio playing code using a standard format consisting of note data and some control characters; I've been successful in replacing this data with my own, and I hope to write a converter soon.
-
- Posts: 5
- Joined: April 11th, 2019, 01:57
Re: How to extract the sound files from the roms?
OK, I've written a (very slow, incomplete) converter, and successfully converted raw Minlib note data into audio info which can be loaded in Audacity and exported. I want to work on the code a bit more before I release it, but I'll post some previews on the Discord server if you want to join that.