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:
-
Novation Launch Control (16 knobs, 8 buttons)
-
Novation Launch Control XL (24 knobs, 8 sliders, 16 buttons)
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
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.
-
At the top of your sketch, import the namespace
pLaunchControl
:import pLaunchControl.*;
-
Declare a global variable of type
LaunchController
LaunchControl midiController;
-
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;
}
-
Attach a knob to a variable in your sketch.
-
Optionally, use
range(float minValue,float maxValue)
to override the output of knob values, anddefaultValue(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);
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.
Shows the knobs and pads on a sketch. A simple way to test the library and the connectivity to your LaunchPad.
Based on the original by Daniel Shiffman, I used the controller to set the various parameters of the super shape algorithm.
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.
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.