llk
So far I was only able to control and internal synth with my keyboard
That means the MIDI function of your keyboard is working correctly in SONAR. But in case, you mean something else, The video that FastBikerBoy gave you a link to should be helpful for you.
llk
I have got it so far to record the sound now from the cord from the mono output of the korg but not with the usb cable how do you set it to be the midi input since it's not a midi cable?
Since you say you already used your Korg to control a softsynth. I think SONAR already sees your Korg MIDI device.
So, in that case, use the Input Dropdown Menu on the MIDI track to select your MicroKorg XL MIDI device and the Omni Channel as the MIDI Input for the MIDI track.
To record MIDI to a MIDI track, you have to arm the MIDI track by enabling the button on the MIDI track with a red dot on it, and then pressing R on your computer keyboard to start the transport in record mode for any tracks you arm for recording. Start playing your Korg and the MIDI will be recorded to the MIDI track. Hit spacebar to stop the recording. If this sounds unclear to you, it will be helpful for you to watch the video in FastBikerBoy's post #13.