Example Code

.Wav sound modifier

Code and Documents

Attachment

Overview

This VI allows modification of the sound played from a wav file, and outputs the results to speakers.

Description

This VI gives some standard sound modification opions such as bass, treble and midtone. You can also modify the speed of the track playing and the volume on the output. Visualization of the sound can be seen in the form of the wave itself, and 1/3 octave analysis.

Bass, treble and midtone changes are acheived by use of lowpass, bandpass and highpass filters respectively. The speed of the sound is modified by altering the value of dt using the align and resample VI.

There are two versions of this, as the version with the 1/3 octave analysis requires the sound and vibration toolkit.

Included to download is a festive .wav file.

Steps to Implement or Execute Code


  1. Specify path of .wav file or click run to open file dialog
  2. (Optional) Choose .wav file in file dialog and click okay
  3. Modify dial values to modify sound properties

Requirements


Software

LabVIEW 2010 +

Sound and Vibration toolkit (Optional for 1.3 octave analysis)

Hardware

Speaker / Headphones

Code Snippit


This code snippit is for the version that includes octave analysis

snippit.png

Additional Images or Video


Image of front panel with octave analysis (right)

example image 1.PNG

Image of front panel without octave analysis (Requires sound and vibration toolkit)

example2.PNG


Matt H
Applications Engineer
National Instruments UK

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

Comments
SLIMLAZY1
Member
Member
on

i love you! #money!

Contributors