So, you're going to compose MIDI tracks based on the melody of a MP3? (a bit confused now)
If it's a popular song, you probably will be able to find a MIDI version of it online. Then, you can clip the section you're interested in and either save as MIDI (if you find an app that exports MIDI) or just let QT convert it to audio.