This example simulates a General MIDI (GM) keyboard. Use the computer keys to play the general MIDI sound you select. The example uses Event structures to get the keyboard events and a Call Library Function Node to send the MIDI messages to Windows.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.