Archive for the ‘music’ Category

Finally, a code for when you’re feeling rhythmically challenged—a LabVIEW metronome.







>>  Get the code here.



Music makes the world go round. If you need to add a little music to your day, you need this code. Play .WAV files with a simple push-button right on the Arduino board. The setup allows you to define the path of the .WAV file or change it while it’s running.

There’s even a nice library of free samples if you need some help.


>> Download the code to start listening.

Though NI LabVIEW is primarily used for engineering applications, its functions are capable of going far beyond just that of engineering. In fact, LabVIEW can be used to automate music composition.

Typically, composers and musicians are responsible for creating any background music they want to accompany an original melody. Composers usually analyze chords, signatures, and tempos to create the supplementing melodies. Recently, composers at Ngee Ann Polytech in Singapore wanted to find a new way to carry out this task. The composers needed a way to use technology as a source to generate music composition rather than just a tool.

By using LabVIEW software, the composers designed a system that first processes input from the keyboard or microphone. Then as the music is being processed, additional music components are generated and tempo and structure of the melody is set. The system reintegrates the elements with the user’s original melody and music notes and rules are formed.

The system design created two modes for processing the music, Automation Mode and Instantaneous Musical Automation mode. Automation Mode lets users input melodies on the piano key system. The melodies are then analyzed and background music is composed. To finish, a wav player reads the data and actually generates sound outputs in the wav format.



The Instantaneous Musical Automation mode is more ideal for suggestive composition and even karaoke. This mode essentially acts as robot pianist. As it detects vocals, the robot pianist creates the background accompaniment.

The success of the automated music composition system demonstrates the versatility of LabVIEW as well as its ease of use. LabVIEW software helped the composers create a system that processes sounds, creates complimentary melodies, and collects results. As technology expands in the music industry, composers are Ngee Ann Polytech will be able to build and expand on the automated music system they have created with LabVIEW.


>>Learn more about making melodies with LabVIEW.