Why not learn some MML and make it yourself?
If you don't want to write MML manually with strings, there are a couple of MML trackers that people have released.
MML isn't a regular SmileBASIC program. That is to say, you can't execute it. To play back that song, usually you would just read the file into a string array and tell BGMPLAY to play it. However, to keep things simple, you could surround your above code snippet with quotations and put BGMPLAY in front of it. Like this:
BGMPLAY "{P0C0=@99......{P0C1}]"
(the .... are just placeholders)
Well it works when i do that, but for some reason it doesn't play the music until it gets to the end. It did that on the editor too. it played fine until i was done making the song, then the beginning didn't play anymore.
It looks like you have 4 measures of rests in your song at the beginning. If you left empty space at the beginning of the song you'll get silence. You might double check it. When you press "X" in the note editor to play the song, what happens? Do you see notes at the beginning?
Oh, that's strange. Hmmm. Are there any other details you can tell me? This might be a bug in the editor. When did you start seeing the issue? After a specific operation? (sav,load,etc..)
This is a big ask, and I'll understand if you don't have the time, but if you upload the SNG file for your song and send me a key I'll be more than glad to try debugging it to figure out what happened.
well, it worked fine, then i went back and finished the song, and it didn't play the beginning anymore.
I'm guessing it might be a problem with the length, but i don't know.
Quick update; this is certainly a bug. I haven't determined why it happens, but it is only on the editor side. You song is perfectly intact and all the notes are there. The issue has to do with the way I calculate leading rests between notes. For some reason when there are more than 16 measures in a pattern, it adds 16 measures worth of rests. I'm debugging now, but I'm happy your song is OK.
In the meantime, you can keep working on your song if you want, you just need to reduce the number of measures from 20 to 16, and just add a second pattern to continue adding notes. It's probably easier in the long run to work with multiple patterns as you can organize parts of your song and don't have to scroll so far to make edits. I'll let you know when there is a patch. Thanks!
Ok, I figured out the issue. I need to get to bed, but I'll try and upload the fixed version over the weekend (need to double check something before I do). It was a problem with how I optimized my bubble sort, which compares the top 12 bits for the note position. The signed bit gets flipped on, resulting in high numbers being turned negative, and sorted before the first note in the pattern.