Converting pitches in audio to MIDI
It is possible. Here’s how to do it in Logic Pro X (where it’s different from earlier versions):


record an audio clip to an audio track
double-click the clip to view it in the Editor panel
click the Show/Hide Flex button near the top left of the editor window, to the right of the menus


You will be asked ‘Do you want to turn on Flex for track “Audio 1”?’. Confirm “Turn on Flex”.
change the Flex pop-up menu at the top of the Editor from “Flex Time – Automatic (Slicing)” to “Flex Pitch”
right-click the audio area and choose “Set all to Perfect Pitch”


from the Edit menu of the Editor area, choose “Create MIDI Track from Flex Pitch Data”, at the bottom




This will generate a MIDI region with the notes Logic can detect from your audio. You can delete your audio track now.



You will probably want to quantize your notes too, which makes notes start on the beat. You can do this by viewing the generated MIDI region in the Editor panel, selecting all of the notes, and choosing a beat size in Time Quantize at the left. Or you could do it earlier in the process, with the Time Quantize section next to the Flex Pitch editor.