Language…
18 users online: Adsila, anonimzwx, Batata Douce, Blizzard Buffalo, BlueSheep123, David_Odie, Doopu, Ekimnoid, HD_DankBaron, LightAligns, LuigiTron, Maniek, MorrieTheMagpie, ppp9q,  Ringo, sinseiga, sugarfish456, WalrusLife - Guests: 265 - Bots: 339
Users: 64,795 (2,376 active)
Latest user: mathew

Converting the disassembled original sound effects into MML format

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. Progress: 64/95 levels.
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.
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.