User blog:Zzyex443/MML HELP

MML CRASH COURSE PART ONEBy ZzyexOK lets do some mml Classing.MML is a simple Petit computer option. its the best way to make music.To start do DATA. DATA is the easiest way to store mmlDATA "C"DATA 00 ends the song, without it Multi-part songs wouldn't work right.Waaaaaitt a second! you say, Thisssss doesn't play!Oh it does, it does.Just do:BGMCLEARBGMSETD 128, @MUSICBGMPLAY 128DATA "C"DATA 0BGMCLEAR removes anything that could already be there.BGMSETD sets the song to 128 there can be a song 128-255BGMPLAY plays the song.You should here a nice, clear "C" piano sound on octave 4.Wait whats C mean? Its quite simple actually. MML is on the treble cleft, I'm not going to teach it to you so i assume you have prior knowledge on the scale. You MUST have " at the beginning of a string.Want it at a new octave? here's option one.DATA O5DATA "C"DATA 0O5 changes it to octave 5. The default octave is 4.Option 2DATA ""DATA 0< puts it up an octave while, > puts it down an octave.Don't like Piano? YOU HATE BRO?!? just do-DATA @71DATA "C"DATA 0This should be a nice clarinet sound.Now for a scaleDATA "CDEFGABBAGFEDC"DATA 0Want the scale to be faster?There are 3 ways to do that-DATA "C8D8E8F8G8A8B8B8A8G8F8E8D8C8"DATA 0The eights make them all 1/8 notes.HELP:1- whole note2-Half note4-quarter note (default)8-Eighth note16-16th notesetc...you could also save the trouble of that and just do:DATA L8DATA "CDEFGABBAGFEDC"DATA 0This makes 1/8 note default notes.If you want faster, why not change the tempo.Just do:DATA T200DATA "CDEFGABBAGFEDC"DATA 0T200 changes the tempo to 200 beats per minute.How about adding some rests:DATA "CDEFGABR1BAGFEDCR1"DATA 0R1 tells it to rest for 1 beat.Now lets do 2 parts:DATA ":0CDEFGABBAGFEDC"DATA 0DATA @71V80DATA "1:CDEFGABBAGFEDC"DATA 0DON'T FORGET THE ZEROS!If you don't include the zeros it will play them both at once then play the second one. You can do 0: to 1:Now, V80 changes the volume to 80. The max is 127.Now lets do Mid-song insturment changeingDATA @71DATA "CDE@11FGA@0BBAGF@11EDC"DATA 00 is piano11 is marimba71 is clarinet.There are many more (up to 255)now lets combine everything you know.DATA @11t120v100l16DATA ":0E-F+E-F+E-F+DATA t120v100l16DATA "CDE@11FGA@0BBAGF@11EDC"DATA 0oh yeah i forgot to mention, - or + makes it Sharp or flat, - being flat + being sharp.This should wrap up lesson one.