Example Code

Piano Note To Frequency in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

 

Overview

Coding that prompts a piano frequency respective to a note.

 

Description

This example generates an array containing all of the frequencies on a piano keyboard. The user can then select a note from the Enum and the program will index the array to return the frequency of that note.

 

Requirements

LabVIEW 2012 or compatible

 

Steps to Implement or Execute Code
1. Select a note from the Enum control.
2. Run the VI.

 

Additional Information or References

 Snippet.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Barron
Applications Engineering
National Instruments

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