If you know how to write music in real life, it should be fairly simple, you can make a label or a string containing the song information (A bunch of notes and commands). Besides just the letter notes, typing in MML and clicking the "Help" button will tell you the other commands that you can play around with to discover how to write properly. Alternatively, you can use a music tool.