Authentic Soundware has released a free MIDI recorder that runs inside of Native Instruments Kontakt.
Sketchpads allows you to record everything you play in Kontakt and drag a MIDI file of your recording to the timeline of your DAW, or into your favorite notation program.
Harness the creativity in free-writing. Record long improvisations outside of your DAW without the temptation to edit or tweak. Then select the best parts of your performance later.
Start writing – fast! Musical ideas can be fleeting, but starting up a modern DAW with hundreds of plug-ins can take several minutes: long enough that you might lose your moment of inspiration. Save a default Kontakt multi with the light-weight SKETCHPAD instrument pre-instantiated and you can be composing in seconds — before you lose your train of thought.
Sketchpad is free to download for the full version of Kontakt (v6.7 or higher).
More information: Authentic Soundware