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
- LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
- Download the attached ZIP file.
- Open the project file and Basic Electronic Keyboard 2012 NIVerified.vi
- Run the VI
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
- Volume control
- Chords (may be complicated!)
- Different "voices" e.g. sine, square or triangle wave generations.
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.**