Coder Social home page Coder Social logo

airguitar's Introduction

AirGuitar

For our 6.835 final project, we built a multimodal virtual guitar player called AirGuitar. This program was built in Unity and interfaced with a LeapMotion, a laptop keyboard, and a laptop microphone to allow a user to input chords and strumming patterns to the program. AirGuitar is able to detect these chords and strumming patterns, visualize them on screen for the user, and play the corresponding music back to them real-time. The program also allows a user to record their music and play it back as well, with the voice commands "Start", "Stop", and "Playback".

Team

Demos

First prototype: https://www.youtube.com/watch?v=xeBiznrQeRw&feature=youtu.be

Second prototype: https://youtu.be/PMuuiR4kzuY

Third prototype: https://youtu.be/mP9nLpaoNk4

Final build: https://www.youtube.com/watch?v=ctez3kwp0w4

Installation

AirGuitar requires Unity 2018 1.1 and the LeapMotion Orion 4.0.0 for your SDK. You will need to have a LeapMotion readily available, as well as a working microphone on your laptop that accepts inputs.

To run this project:

  1. Clone this repository
  2. From the Unity Hub, open the root folder up in Unity 2018 1.1. This will open the project in Unity.
  3. Plug in your LeapMotion
  4. Press the play button at the top of the Unity editor to start the program. It should open to the intro screen. Click 'Play'.
  5. Make sure your LeapMotion is working by waving your hand above it and seeing if the hand appears on the screen.
  6. For chords to be recognized, your index finger and thumb must be pressing as if you are holding a pick. Try strumming, and you should hear the sound of the open strings on a guitar.
  7. Play a song! Remember that you can use voice commands 'Start' to start a recording, 'Stop' to stop it, and 'Playback' to listen to it.

Table of Contents

(../ = AirGuitar/)

  • ../vs./AirGuitar/v15, ../Library, ../Packages, ../ProjectSettings, ../obj/Debug: Various Unity metadata files. Please do not touch or edit these in any way when cloning the project. It will probably break everything.
  • ../Assets
    • /Chords: The Unity audio objects that represent the chords.
    • /LeapMotion: Contains all of the assets and code necessary for LeapMotion integration. For strumming, we edited ../Assets/LeapMotion/Core/Scripts/Hands/RigidHand.cs, which is attached to the detected hand objects.
    • /Pictures: The Unity assets for the guitar background, the chord visualization buttons, and bar chords.
    • /Scenes: Contains the two Unity scenes that make up the game - the intro and the Leap Guitar scenes, specifically.
    • /Scripts: Majority of scripts for the project.
      • AudioRecord.cs controls voice input and the recording functionality.
      • LightUpFingers.cs controls the chords 'lighting up' with the coded bubbles whenever a chord key is pressed (e.g. 'A', 'B'...)
      • PlayGame.cs controls the intro scene switching to the Leap guitar scene.
  • ../Photoshop: Contains Photoshop files for all the assets created for the program.
  • ../Pictures: Contains picture for README
  • ../chords: Contains mp3s for all the chords we currently support.
  • ../AirGuitar.sln, ../Assembly-CSharp-Editor.csproj, ../Assembly-Csharp.csproj: Files for Visual Studio 2017, the editor of choice for C# code used for Unity.

airguitar's People

Contributors

ndevasia avatar nadah09 avatar

Stargazers

Patrick Lafleur avatar  avatar Kat Huang avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.