Banner
Views: 994,064,091
Time:
19 users online: Ahrion, AjaTheVampire, Alfombra de madera,  AmperSam, Azula16, crismemoria, ghyn, GlitchyR-01, Heraga, Impetus, IronFoxGaming, Lightning, Lucayorlando, LuigiTron, Natsu, RichardDS90, SomeGuy712x, Swaguy14256, Ziz - Guests: 85 - Bots: 207 Users: 54,506 (2,076 active)
Latest: LUHOINK
Tip: If you want to remove patches from your ROM, it is best to either use the restore function, or port everything to a clean ROM.
Not logged in.
Converting the disassembled original sound effects into MML format
Forum Index - SMW Hacking - SMW Hacking Help - Custom Music - Converting the disassembled original sound effects into MML format
Pages: « 1 » Link
I'm trying to make a louder version of one of the original sound effects (specifically, the Valley of Bowser earthquake rumble), and it is proving a lot harder than it has any right to be. The original sound effects are included with AMK, but only as hex data, and it doesn't seem to follow quite the same format as music. The data for the original earthquake SFX looks like this:

Code
$DA $11 $0C $00 $54 $8C $08 $1C $0E $8C $0C $46 $38 $8C $12 $38
$54 $8D $0C $0E $1C $8B $12 $2A $1C $89 $18 $1C $0E $8B $08 $0E
$1C $8C $0C $1C $0E $89 $06 $2A $15 $8B $08 $0E $1C $8C $30 $1C
$1C $8B $FF


$DA $11 is easy enough, $FF is obvious, and the $8x's are presumably note values (and low notes at that), but...I'm not so sure about all the other stuff, and I especially can't tell how it handles the volume for each note. I thought AddmusicK's readme had documentation about the format of music and sound effect hex data, but apparently not. Could anyone else shed some light on this?

----------------

I'm working on a hack! Check it out here.
SNESDEV wiki's NSPC format page

This is as close to the most info I could find without hacking around, Also very handy.
Originally posted by Hamtaro126
SNESDEV wiki's NSPC format page

This is as close to the most info I could find without hacking around, Also very handy.

I am afraid it told us the song format, not sound effects format.
Formerly known as tcdw (2011-2021)
PortsAMK SPC DisassemblerC3 Winter 2022 Stuff
Unfortunately AMK apparently doesn't have a strong enough parser to make the output 100% identical to original, so you will have to figure the format yourself. It is not that complicate, but it's a bit different:

Code
$DA $11 $0C $00 $54 $8C $08 $1C $0E $8C $0C $46 $38 $8C $12 $38
$54 $8D $0C $0E $1C $8B $12 $2A $1C $89 $18 $1C $0E $8B $08 $0E
$1C $8C $0C $1C $0E $89 $06 $2A $15 $8B $08 $0E $1C $8C $30 $1C
$1C $8B $FF


$DA $11 -> set instrument to 17
$0C -> set note length to 12 ticks (16th note)
if the next value is less than $80, then set volume
$00 -> L/R volume
if the next value is still less than $80, then set right volume
$54 -> R volume
so the actual volume is $00 $54
$8C -> o2 c (octave = ($8C&$7F)/12+1; note = {"c","c+","d","d+","e,"f","f+","g","g+","a","a+","b"}[($8C&$7F)%12])
$08 -> 24th note
$1C $0E -> L/R volume
$8C -> o2 c

etc, etc.

$FF means repeat last note.
$FE means repeat whole sound effect.
$00 means end of sound effect (probably AMK inserts automatically).
$DD is a pitch slide command (start note, delay, length, note to fade)
$EB is a pitch bend command, same format as N-SPC.
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - Custom Music - Converting the disassembled original sound effects into MML format

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2022 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks