Generate music options?

I may need to pull out my music synthesizer and use the KM MIDI actions, but has anyone created a macro that lets me use KM to generate musical notes without having a MIDI device? I imagine the macro would probably take a text parameter and convert letters representing musical notes to some AppleScript code.