LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MIDI Keyboard Input

Howdy,

 I'm trying to simply capture the keys pressed on a musical keyboard (using a USB-MIDI device) and display as a number from 0-127. Seems simple enough. But as I have read on this forum...
And in several other places, like...
... this is not a simple task. The MIDI Throughput program works great if I want to play the keyboard's sound thru my computer, and so far its the closest thing to what I need. But its going to take a large amount of time for me to wrap my head around the whole kit and kaboodle. Apparently I need to learn the whole history of MIDI development, how the devices send the data packets, how the Windows API functions work, and write my own callback functions to the winmm.dll. Where's an intern when you need one!?! lol Smiley Wink

Sometimes I think we are really spoiled when we install a data aquisition card, install the drivers, select the channel(s) we want to read, and make all kinds of pretty graphs and stuff. NI makes it so easy to take such things for granted.

If anyone already has a LabVIEW function to do this, please let me know!

Thanks,

- Greg





Message Edited by LabViewGuruWannabe on 01-23-2008 11:00 PM
0 Kudos
Message 1 of 3
(4,352 Views)
Hi Greg,
 
It looks like the midiinopen.vi that is part of the MIDI Throughput.vi accomplishes what you need. It takes that MIDI device and reads in the data from the MIDI device and then sends out a number representing the value. It looks like you've done a lot of the background research. If you do want to use the Call Library Function Node with the winmm.dll you might want to look at this section of the msdn Multimedia Functions that you referenced in your post.
 
I also checked internally but didn't find any vis that might accomplish what you wanted.
Regards,

Hillary E
National Instruments
0 Kudos
Message 2 of 3
(4,321 Views)

Thank you so much! You're my hero!

0 Kudos
Message 3 of 3
(3,165 Views)