News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

ONE OF YOU MUST DO THIS.

Started by Silver Skree, June 30, 2010, 07:57:22 AM

Previous topic - Next topic

Silver Skree

IT MUST BE DONE. THE UNIVERSE DEMANDS IT.

Metroid Zero Mission Instrument Data Rip

Compose this for MZM and you will be the sexiest person to walk this earth.

zephyrtronium

I don't think many music- and sound-related things have been documented. I do have the starting point for such things, though, via my old blfind program.

X-tradyte

Nice Techno Like Music!  :lol:

P.JBoy

Well, you can open up a sound file in Audacity, convert it to 8-bit unsigned PCM, and place the sound file over where the audio you want to replace is in the ROM (opened up as a RAW file in Audacity)
...

zephyrtronium

In that case, writing a python script to do that automatically shouldn't be too difficult. Could possibly even handle repointing; there should be a pointer table somewhere. I never did finish debugging that sound bl...

P.JBoy

Yeah, sound's too fucking complex
...

zephyrtronium

Alright, following some work, I was able to find a big table of all sounds in the game at 08F2C0 and determined that the data best fits as 8-bit signed PCM (like gbatek says the DMA channels use) at 16384 Hz in one channel. I still don't understand how to determine the lengths of samples, though.

If I were to make a (relatively good) program for editing the game's sound samples, I'd have it read the pointer to the table from 003FEC (or a user-specified location), make it able to relocate said table, give it the ability to relocate the samples themselves, and obviously have it convert input files to the necessary format. I'd still need some help determining sample lengths, though - the subroutine starts at 08003FAC hinthint. :huzzah:

P.JBoy

...

P.JBoy

...

personitis

That some pretty awesome and enjoyable music. =D


zephyrtronium

This document seems consistent with what I vaguely remember from my previous attempts at hacking MZM sounds. Probably useful indeed.

P.JBoy

#12
Oh wow, I never even thought of looking up a doc about sound implementation.  Very recent actually, wondered how I missed that doc
...

interdpth

Get it in midi form and I'll insert it.

personitis

Quote from: interdpth on July 07, 2010, 03:22:30 AM
Get it in midi form and I'll insert it.
When I'm not feeling lazy. It's 8:30am... gimme another 3 hours.