step 1.) Learn to read sheet music. Know how to read it like you can English writing, know it backwards and forwards.
step 2.) find a good scorewriter, I have yet to find a functional free one, I use a pirated version of Finale scorewriter, but plan on buying a copy once I get the money.
step 3.) Write a song in the scorewriter.
step 4.) Save it as an MIDI file.