Example Code

Communicating with a Windows MIDI Device in LabVIEW

Code and Documents

Attachment

This example shows how to use the Windows Multimedia DLL to communicate with a MIDI device.

Use the top-level VI to select a MIDI device, channel, patch, volume, and pitch, and to play the note for one second. Intermediate-level VIs include Patch Select, Note On, and Note Off. Low-level VIs include midiOutOpen, midiOutShortMsg, and midiOutClose.

This example is not intended to be a complete MIDI toolkit; its purpose is to help you get started. To extend these VIs, you might need to refer to other Web sites for more information about the MIDI specification and the Microsoft Windows MIDI programming interface.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
gavel
Member
Member
on

This opened a huge door for me.  Many thanks for posting!

Contributors