Giter VIP home page Giter VIP logo

youconduct's Introduction

youConduct

YouConduct is a set of python script that allow you to conduct an orchestra of virtual instruments. YouConduct is based on two libraries: fluidSynth and OpenCV. FluidSynth is a software that synthesizes music from soundfont in real-time. OpenCV is known for powerful real-time graphics processing.

In order to use youConduct, you need to install the following first:

  • fluidSynth
  • opencv2
  • python binding for opencv

For debian distributions, you can install the above as follows:

sudo apt-get install libopencv-dev python-opencv fluidsynth

fluidSynth.py is python binding for fluidSynth library which will be used by colorSound.py.

1. colorSound.py

colorSound lets you conduct virtual orchestra using colors. It processes images captured from a webcamera and tracks three colors (Green, Blue, and Red). When you run the script, it shows video stream captured from your camera. colorSound detects and tracks the three colors. Only one instance of each color with largest size is tracked, and each color plays different instrument. The soundfont that comes with youConduct ('soundFont1.sf2') has three instrument presets.

  • Green - Yamaha Grand Piano
  • Blue - Violin
  • Red - Ahh Choir

Alt text

Just grab anything that has at least one of the three colors and conduct the orchestra as professionals do. The software can play three instruments simultaneously if it sees all the three colors. Colors can detected from your shirt also!.

You can play other/more instruments by modifying the script to use different soundfont file. If you use different soundfont, make sure that you select the appropriate program and bank for each instrument.

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.