Example Code

LabVIEW Guitar Using 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:

This VI plays recorded sound files, from an actual guitar

 

Description

This code work like an actual guitar, the strings are elongated boolean buttons who's mechanical action is 'Latch When Pressed'. The structure of the code uses events, and the control type is set to Mouse Enter. Essentially, when your mouse passes within the range of the 'string', it activates the relevant event, causing it to play the sound file.

 

Requirements:

  • LabVIEW 2012(or compatible)


Steps to Implement or Execute Code

  1. Run the vi.
  2. Move your mouse across the strings, and listening to the sound

 

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

 


ShalimarA | CLA

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

Comments
Mayayi
Member
Member
on

hi,

I can't run it, my Labview Version is 2011 but i think this program version is 2012!

Please save 2011 format.

Thanks,

ShalimarA
Member
Member
on

There you go, I've attached a version suitable for LV 2011 as well.


ShalimarA | CLA
Rob_Ward
NI Employee (retired)
on

Nice code Shalimar.  Hows about adding keyboard features so you can play more notes?

Robert Ward
Applications Engineer, NI
Matt_McLaughlin
NI Employee (retired)
on

I was thinking the same thing! Great UI and it's impressive how simple the VI is!

Using the keyboard to represent frets would be an amazing addition.

-Matt

Matt
NI Community Team
National Instruments
ShalimarA
Member
Member
on

Thanks for the comments, guys!

I'm definitely going to be implementing frets and chords into the piece as soon as I get a chance to, any other suggestions would be great!


ShalimarA | CLA