Skip to content

A JAVA wrapper for the Novation Launch Controller aimed at using the MIDI pads and knobs as input for Processing sketches.

Notifications You must be signed in to change notification settings

haschdl/pLaunchController

Repository files navigation

pLaunchControl

Use your Novation MIDI controllers with Processing. With this library you can connect your Novation MIDI devices to Processing sketches, using the physical knobs, slides and pads to change variables in the sketch to control animation, color, position, etc.

In this release, the library supports the devices:

Installation

From Processing editor

In Processing, go to Sketch, Import library..., Add library. Search for "Novation Launch Control client" and once found, click Install. If you are having trouble using the Contributor Manager in Processing, you can try the manual installation

Quick guide

To start using the library, make sure your MIDI device is connected to your computer (at least one led is lit). For more advanced usage, see also Using events.

Add reference to library

  1. At the top of your sketch, import the namespace pLaunchControl:

    import pLaunchControl.*;
  2. Declare a global variable of type LaunchController

      LaunchControl midiController;
  3. Instantiate the controller during setup():

    try {
        midiController = new LaunchControl(this);
    }
     catch(Exception e) {
        println("Error connecting to MIDI device! Sketch will run with UI controllers. values.");
        midiController = null;
    }
  1. Attach a knob to a variable in your sketch.

  2. Optionally, use range(float minValue,float maxValue) to override the output of knob values, and defaultValue(float value) to set an initial value. By default, knobs will return values from 0 to 127.

  controller.getKnob(KNOBS.KNOB_1_HIGH).range(10,200).defaultValue(h);

Examples

Once you install the library from Processing, you can open the examples from File -> Examples... -> Contributed Libraries -> Novation Launch Control client. See below a brief description for each example included.

Launch Control Demo

Shows the knobs and pads on a sketch. A simple way to test the library and the connectivity to your LaunchPad.


Source code

SuperShape

Based on the original by Daniel Shiffman, I used the controller to set the various parameters of the super shape algorithm.


Source code

Compatibility

The library was developed in Windows 10, and it has been tested with Processing 3.4 and Processing 4 in both Windows 10 and macOS 10. If you have trouble using the library, please submit an issue.

Limitations and further development

The library was developed and tested only two of the Novation controllers, Launch Control and Launch Control XL. If you are interested in using other Novation products please submit an issue, and I will evaluate what can be done.

About

A JAVA wrapper for the Novation Launch Controller aimed at using the MIDI pads and knobs as input for Processing sketches.

Resources

Stars

Watchers

Forks

Packages

No packages published