Language…
22 users online: AmazingChest,  AmperSam, anonimzwx, Blizzard Buffalo,  Eden_, elegist, Fozymandias, GRIMMKIN, h.carrell, Heitor Porfirio, Hiro-sofT, Maw, NTI Productions, Null42, playagmes169, Snowfool948,  Telinc1,  Thomas, tOaO, Tulip Time Scholarship Games, underway,  yoshi3706 - Guests: 290 - Bots: 466
Users: 64,795 (2,373 active)
Latest user: mathew

Custom Music Failure

I have followed this tutorial to make this song [this is the MIDI], I have successfully insert it into a ROM using AddMusic 4.05, but when I play a level set to that song, it stops shortly after some notes are played. Everything stops; no sounds.
Did I do something wrong? Should I use AddMusicM instead? Do I need a header? Is there something wrong with the file?
Code
[[g+16r8]4[g+16]2r8]3


First, you can't have loops inside loops.

Code
#0   @23 q7f v220 y10 w255 t125

b4^8^16^32r32/
r1


That's the whole channel? when it finishes playing the note, the song will repeat after the rest, replace that r1 with [r1]100. Edit 2: Also, @23 can't play that note, it's long for the instrument.

Originally posted by Mastertech2020
Do I need a header?


Yes.

Code
$ED $80 $6D $2B 
$ED $80 $7D $00 
$F0				


Edit:

Almost forgot, you need the -se command.

Code
AddMusic romname.smc -se
Originally posted by Masterlink
Code
[[g+16r8]4[g+16]2r8]3


First, you can't have loops inside loops.

Okay, I did the distributive property inside the loop so it won't take up more file space.

Originally posted by Masterlink
Code
#0   @23 q7f v220 y10 w255 t125

b4^8^16^32r32/
r1


That's the whole channel? when it finishes playing the note, the song will repeat after the rest, replace that r1 with [r1]100. Edit 2: Also, @23 can't play that note, it's long for the instrument.

Okay, I already looped that.

Originally posted by Mastertech2020
Do I need a header?


Originally posted by Masterlink
Yes.

Code
$ED $80 $6D $2B 
$ED $80 $7D $00 
$F0				

So I use that same header of all of my future music?

Originally posted by Masterlink
Edit:

Almost forgot, you need the -se command.

Code
AddMusic romname.smc -se

No, that's not the case; I already know and did that command. Remember, I said that when I played it, the sounds stops; so this is after I inserted the music, not before.

Cool, thanks. The music plays, now I just need to fix the notes and sounds!

Originally posted by Masterlink
Edit 2: Also, @23 can't play that note, it's long for the instrument.

I'm going to fix the the instruments at all, so yeah.
Yep, you need that header for all of your future songs, UNLESS it's for an OW track, in which case:
Code
$ED $80 $6D $68 
$ED $80 $7D $00 
$F0
LINKS Twitter | YouTube | SoundCloud | Fortaleza Reznor
to hear birds and see none.
Alright then. Thanks everyone for solving my problem. This music will go great with the level I'm planning on.