Giter Club home page Giter Club logo

leap_frontend's Introduction

leap_frontend

An alternative front end for the con-espressione exhibit based on processing. This was developed because the web-based front end could be hard to set up on some systems, in particular on windows.

The only goal of this front end is to pick up the signal from the leap motion and send MIDI signals to the back end. Other things, like audio synthesis, are not supported. An external MIDI synthesizer is required.

Setup

The following softwares/libraries are needed:

  • Processing, download from the main page.
  • Processing leap motion library. You can download it from the github page. But I suggest to download it from the library manager inside Processing.
  • Leap motion SDK v2, download from this page. This is an old SDK version, since the new one don't support java anymore. Look at the README on how to install the SDK and how to run it. This link provides you with the details on how to integrate it into Processing.

If you are using windows and don't have a physical MIDI interface to do the MIDI loopback, you can install a library for virtual MIDI loopback, such as loop midi.

If you don't have a MIDI instrument available, you can use a virtual MIDI instrument, such as Virtual Midi Synth.

If you are using Linux (Ubuntu honestly), you need to create virtual ports via sudo modprobe snd-virmidi.

Usage

  1. Set the MIDI in/out MIDI ports on the con_espressione backend (con_espression.py file, lines 17-18). Use mido.get_output_names() and mido.get_input_names() to get the specific name in python.
  • Windows: The input and output is the MIDI loopback port created by LoopMIDI .
  • Ubuntu: You need to choose any of the ports created by the modprobe command and query how they are called on the Mido side.
  1. Launch the con_espression backend, following the instruction at this page, and keep it running.
  2. Connect the leap motion and run the Leap Motion process in the background (see Setup).
  3. Open the processing file and set the piano (or virtual instrument) MIDI OUT port, the virtual device (MIDI IN and OUT, corresponding to the one set in the python backend server) and the MIDI NanoKey IN. If you run the Processing script, it will list all ports before it exits on failure to connect to ports. Be aware that the names are a bit different here from the ones listed by Mido, but they appear in the same order.
  • Ubuntu: You need to choose any of the ports created by the modprobe command and query how they are called on the Processing side.
  1. Launch the processing script. Press "P" to play and enjoy (or don't, that is up to you, actually).

leap_frontend's People

Contributors

fosfrancesco avatar

Watchers

 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.