Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

MIDI keyboard

Hi
 
I am trying to create an MIDi keyboard in labview software. i had looked in to some examples mention below. is it neccesary to create separate VI's for NOTe -on ad NOte -Off .  I didnt got logic behind this midi keyboard. could please help me in some way to understand the logis of midi keyboard.
0 Kudos
Message 1 of 2
(4,012 Views)

Hi

The example uses event structure to monitor when to play a note. Depending on the sound type selected, when a user press down any key on the keyboard, the "Keydown" event is executed. Within this event structure, the corresponding key code is passed to the "Scan Code 2 MIDI" subVI. This subVI scans for any code that matches the letters (A S D F G H J K L) and generates a MIDI note. The MIDI note is bundled along with other parameters in the "Note On" subVI to form the MIDI data that is then passed to a Windows MCI API dll (winmm.dll) to generate the sound. Likewise when the key is released, the "Key Up" event calls the "MIDI off" subVI that turns off the sound.

Tunde

0 Kudos
Message 2 of 2
(4,003 Views)