On a slightly more academic note, there have been a number of studies on "Query by Humming" where you can get very close to the music you're thinking of by entering "higher, lower, higher, same" for the pitch of the notes. Something like 7 notes gets you pretty close if memory serves.