Language…
6 users online: Firstnamebutt, Klug, netyo, playagmes169, qantuum, Zavok - Guests: 234 - Bots: 426
Users: 64,795 (2,378 active)
Latest user: mathew

Help with custom music

I'm trying to convert this midi file to a format that works with SMW.

Using this MML editor and SNN's custom music tutorial I came up with this code (excuse all the extra line breaks, I'm not sure why Pastebin inserted all those but I assure you they aren't actually there in my file). That code inserted just fine into my rom but within about 15 seconds or so of starting the level, all sound completely breaks and upon a screen transfer or the level ending, the rom freezes.

Here's an IPS patch for my rom if anyone is unsure of what I mean. It's the level to the left of where you start. (My test level for getting stuff set up before actually building any real levels.)

Edit: I've tested it in both BSnes and Snes9x.
Channel #0 there looks like a garbled mess, nothing but tempo markings and rests. Also t160? wtf why so fast? SMW tempo != MIDI tempo. You want to multiply MIDI tempo by 0.4 and you'll get the SMW tempo. You forgot to add the AM4 header (implying you're using AM4). There are also & symbols all over the place. The old pitchbend command sucks donkey ass lol. People use $DD now instead of &. That or you didn't change those symbols back to < or >, I don't know though.
I think a post layout goes here somewhere...
The tempo was automatically set so high by the MML editor I used. And what do you mean by AM4 header? This is my first time trying to use custom music and all the tutorials seem to only cover bits and pieces of the process rather than the entire thing so I'm not sure what you mean by that. And for the $DD thing, should i just replace all &s with $DDs then?
The addmusic 4.05 headers are...

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;LEVEL MUSIC HEADER!!!!!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
$ED $80 $6D $2B ; Echo buffer x2B00
$ED $80 $7D $00
$F0 ; Echo = Off
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

and

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;OW MUSIC HEADER!!!!!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
$ED $80 $6D $68 ; Echo buffer x6800
$ED $80 $7D $00
$F0 ; Echo = Off
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

they're needed for addmusic4.05 usage and need to be at the top of the txt file.

As for the pichbends, they're fairly complex to work with, it's not just a matter of simply changing them to $DD :\ . Honestly, if this is your first time porting, you should start off with something fairly simple till you really get the hang of it.
I think a post layout goes here somewhere...
Well this is likely the only port I'll end up doing. This is a little too complex for my preference so I just want to try to get this one song done so that I can use it in my hack.
I had tried the one before this other one I used and I got nothing but "octave too high" (along with a few "octave too low" and "invalid octave" errors as well) errors. So many in fact that cmd couldn't list them all at once for me.
You need to look through the text file (best done with notepad) and find any o6 and higher, or any o0s. Replace them with something else. If you'd like, you could send me the MIDI/MML and I could fix it up for you. Just PM me if you'd like me to.
soundcloud / bandcamp / twitter / buy/stream my EP / buy my touhou music / buy my NEW album!!!