To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example contains the project files of a Basic Electronic Keyboard, which allows the user to generate the sounds of each key over 2 octaves either by pressing the on screen keys, or by the use of their computer keyboard.
Description
The Basic Electronic Keyboard (which I'll warn you is very basic!) allows the user to generate the sounds of each key over 2 octaves either by pressing the on screen keys, or by the use of their computer keyboard.
This is definitely a work in progress, and a key future improvement would be to improve the sound quality.
Currently the sound is produced from a system beep at a specified frequency for each key, but I plan on editing the code to generate the sounds using sine waves to produce a sine wave from each button as well as adjusting the code so that the sound is produced for the length of time that the key is pressed
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippets
If you have any suggestions of extra features you would like to see, please comment but currently I have thought of:
Recording and playback
The files are saved into LabVIEW 2009 and 2010 SP1, but if you'd like a different version let me know.
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hello Tori M.,
nice, but your white B key should be a H !
Greetings
Chris
Attached for LabVIEW 2009 after Willy's request. Hoping to edit the code soon to improve sound quality.